diff --git a/src/pages/Admin/ItemsView.vue b/src/pages/Admin/ItemsView.vue index 8fedd306..4580b3d4 100644 --- a/src/pages/Admin/ItemsView.vue +++ b/src/pages/Admin/ItemsView.vue @@ -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 || []);