[autocomplete] don't show tags with 0 uses, see #1012
This commit is contained in:
@@ -64,8 +64,10 @@ class AutoComplete extends Extension
|
|||||||
"
|
"
|
||||||
SELECT tag, count
|
SELECT tag, count
|
||||||
FROM tags
|
FROM tags
|
||||||
WHERE LOWER(tag) LIKE LOWER(:search)
|
WHERE (
|
||||||
|
LOWER(tag) LIKE LOWER(:search)
|
||||||
OR LOWER(tag) LIKE LOWER(:cat_search)
|
OR LOWER(tag) LIKE LOWER(:cat_search)
|
||||||
|
)
|
||||||
AND count > 0
|
AND count > 0
|
||||||
ORDER BY count DESC, tag ASC
|
ORDER BY count DESC, tag ASC
|
||||||
$limitSQL
|
$limitSQL
|
||||||
|
Reference in New Issue
Block a user