feat: Admin/Items show only isActive #99
|
@ -22,8 +22,8 @@ const query = `SELECT i.id, i.longName, i.size, i.category,
|
|||
LEFT JOIN image im
|
||||
ON im.collectionFk = 'catalog'
|
||||
AND im.name = i.image
|
||||
WHERE i.longName LIKE CONCAT('%', #search, '%')
|
||||
OR i.id = #search
|
||||
WHERE (i.longName LIKE CONCAT('%', #search, '%')
|
||||
OR i.id = #search ) AND i.isActive = 1
|
||||
|
||||
ORDER BY i.longName LIMIT 50`;
|
||||
|
||||
const onSearch = data => (items.value = data || []);
|
||||
|
|
Loading…
Reference in New Issue
Cambiar:
AND i.isActive = 1 → AND i.isActive
Totalmente de acuerdo, porque esto es SQL tal cual, no es la utilidad web que se hizo para este proyecto
Fet!
85296109ca