User tests: Successful: Unsuccessful:
for SELECT DISTINCT, ORDER BY expressions must appear in select list
remove order by for distinct select
access com_finder component with query strings: ?task=suggestions.suggest&format=json&tmpl=component&q=eW
error:
42P10, 7, ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
LINE 6: ORDER BY t.links DESC,t.weight DESC LIMIT 10
^
Warning: foreach() argument must be of type array|object, bool given in \components\com_finder\src\Model\SuggestionsModel.php on line 54
{ "suggestions": [] }
{ "suggestions": [] }
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_finder |
Unfortunately this breaks the ordering of the suggestions. This PR unfortunately can't be merged like this.
Then the query needs to be changed so it returns also the columns which are used in the order by, possibly as subquery with the surrounding query returning only the term.
Unfortunately this breaks the ordering of the suggestions. This PR unfortunately can't be merged like this.