diff --git a/administrator/components/com_menus/helpers/menus.php b/administrator/components/com_menus/helpers/menus.php index c1e1e73a64d26..91f9276b2cd4d 100644 --- a/administrator/components/com_menus/helpers/menus.php +++ b/administrator/components/com_menus/helpers/menus.php @@ -148,7 +148,7 @@ public static function getMenuLinks($menuType = null, $parentId = 0, $mode = 0, { $db = JFactory::getDbo(); $query = $db->getQuery(true) - ->select('a.id AS value, + ->select('DISTINCT(a.id) AS value, a.title AS text, a.alias, a.level, @@ -205,40 +205,6 @@ public static function getMenuLinks($menuType = null, $parentId = 0, $mode = 0, } $query->where('a.published != -2'); - - if (JLanguageMultilang::isEnabled()) - { - $query->group( - 'a.id , - a.title , - a.alias, - a.level, - a.menutype, - a.type, - a.published, - a.template_style_id, - a.checked_out, - a.language, - a.lft, - l.title , - l.image'); - } - else - { - $query->group( - 'a.id , - a.title , - a.alias, - a.level, - a.menutype, - a.type, - a.published, - a.template_style_id, - a.checked_out, - a.language, - a.lft'); - } - $query->order('a.lft ASC'); // Get the options.