diff --git a/plugins/system/helixultimate/layout/megaMenu/modules.php b/plugins/system/helixultimate/layout/megaMenu/modules.php index 6a2aca4a..6e80607d 100644 --- a/plugins/system/helixultimate/layout/megaMenu/modules.php +++ b/plugins/system/helixultimate/layout/megaMenu/modules.php @@ -25,8 +25,12 @@
diff --git a/plugins/system/helixultimate/src/Platform/Helper.php b/plugins/system/helixultimate/src/Platform/Helper.php index 866deffb..a0d1bf13 100644 --- a/plugins/system/helixultimate/src/Platform/Helper.php +++ b/plugins/system/helixultimate/src/Platform/Helper.php @@ -416,9 +416,11 @@ public static function getModules($keyword = '') { $db = Factory::getDbo(); $query = $db->getQuery(true); - $query->select('DISTINCT m.id, m.title, m.module, m.position, m.params, e.manifest_cache') + $query->select('DISTINCT m.id, m.title, m.module, m.position, m.params, m.published, e.manifest_cache') ->from($db->quoteName('#__modules', 'm')) - ->where($db->quoteName('m.client_id') . ' = 0'); + ->where($db->quoteName('m.client_id') . ' = 0') + ->where($db->quoteName('e.client_id') . ' = 0') // Select only site extensions. This prevents returning duplicate entry for same module + ->where($db->quoteName('m.published'). ' != -2'); // Don't show trashed items, can parameterized. $query->join('LEFT', $db->quoteName('#__extensions', 'e') . ' ON (' . $db->quoteName('e.element') . ' = ' . $db->quoteName('m.module') . ')'); if (!empty($keyword))