Skip to content
Snippets Groups Projects
Commit 570b175d authored by Leila Gonzales's avatar Leila Gonzales Committed by Demian Katz
Browse files

Updated getTagList for mySQL 5.7.5+ compatibility

- Updated GROUP BY clause to include both tags.id and tags.tag. Fixes bug that prevents tag autocomplete when using mySQL 5.7.5+
parent 38c2a3d3
No related merge requests found
...@@ -227,7 +227,7 @@ class Tags extends Gateway ...@@ -227,7 +227,7 @@ class Tags extends Gateway
if (is_callable($extra_where)) { if (is_callable($extra_where)) {
$extra_where($select); $extra_where($select);
} }
$select->group('tags.tag'); $select->group(['tags.id', 'tags.tag']);
switch ($sort) { switch ($sort) {
case 'alphabetical': case 'alphabetical':
$select->order(['tags.tag', 'cnt DESC']); $select->order(['tags.tag', 'cnt DESC']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment