Skip to content

Commit

Permalink
fix #11628 for postgresql (#2)
Browse files Browse the repository at this point in the history
in postgresql don't work as it is now , it give an **SQL ERROR**
 for the `ORDER BY` clause field used `a.lft` must be in the select list of fields when the `SELECT` use `DISTINCT()`
  • Loading branch information
alikon authored and ggppdk committed Aug 17, 2016
1 parent 8754f10 commit 2972851
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function getOptions()

$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('DISTINCT(a.id) AS value, a.title AS text, a.level')
->select('DISTINCT(a.id) AS value, a.title AS text, a.level, a.lft')
->from('#__menu AS a');

// Filter by menu type.
Expand Down

0 comments on commit 2972851

Please sign in to comment.