Skip to content

Commit 2972851

Browse files
alikonggppdk
authored andcommitted
fix #11628 for postgresql (#2)
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()`
1 parent 8754f10 commit 2972851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/components/com_menus/models/fields/menuparent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function getOptions()
3939

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

4545
// Filter by menu type.

0 commit comments

Comments
 (0)