Hide hidden categories from searchresults
This commit is contained in:
parent
73fa27c88a
commit
efde504603
@ -123,6 +123,7 @@ FROM categories
|
||||
INNER JOIN category_groups ON categories.category_group_id = category_groups.id
|
||||
WHERE category_groups.budget_id = $1
|
||||
AND categories.name ILIKE $2
|
||||
AND category_groups.name != 'Hidden Categories'
|
||||
ORDER BY category_groups.name, categories.name
|
||||
`
|
||||
|
||||
|
@ -26,5 +26,6 @@ FROM categories
|
||||
INNER JOIN category_groups ON categories.category_group_id = category_groups.id
|
||||
WHERE category_groups.budget_id = @budget_id
|
||||
AND categories.name ILIKE @search
|
||||
AND category_groups.name != 'Hidden Categories'
|
||||
ORDER BY category_groups.name, categories.name;
|
||||
--ORDER BY levenshtein(payees.name, $2);
|
Loading…
x
Reference in New Issue
Block a user