diff --git a/administrator/components/com_installer/models/manage.php b/administrator/components/com_installer/models/manage.php index f6f6f492ecd3a..b53b9f1c05e1f 100644 --- a/administrator/components/com_installer/models/manage.php +++ b/administrator/components/com_installer/models/manage.php @@ -292,10 +292,14 @@ public function remove($eid = array()) protected function getListQuery() { $query = $this->getDbo()->getQuery(true) - ->select('*') - ->select('2*protected+(1-protected)*enabled AS status') - ->from('#__extensions') - ->where('state = 0'); + ->select('e.*') + ->select('u1.update_site_id') + ->select('u2.update_site_id AS update_site_id_pkg') + ->select('2*e.protected+(1-e.protected)*e.enabled AS status') + ->from('#__extensions AS e') + ->leftJoin('#__update_sites_extensions AS u1 ON u1.extension_id = e.extension_id') + ->leftJoin('#__update_sites_extensions AS u2 ON u2.extension_id = e.package_id') + ->where('e.state = 0'); // Process select filters. $status = $this->getState('filter.status'); @@ -344,7 +348,6 @@ protected function getListQuery() } // Note: The search for name, ordering and pagination are processed by the parent InstallerModel class (in extension.php). - return $query; } } diff --git a/administrator/components/com_installer/views/manage/tmpl/default.php b/administrator/components/com_installer/views/manage/tmpl/default.php index ccc6bff0c7c25..800781a5732d8 100644 --- a/administrator/components/com_installer/views/manage/tmpl/default.php +++ b/administrator/components/com_installer/views/manage/tmpl/default.php @@ -103,6 +103,12 @@ name; ?> + update_site_id === null && $item->update_site_id_pkg === null && JExtensionHelper::checkIfCoreExtension($item->type, $item->element, $item->client_id, $item->folder) === false) : ?> + + + +