[-] BO : admin tab without multishop classes couldn't be displayed #PSCFV-2427

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15410 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-05-19 09:25:25 +00:00
parent 3ca67d4ebd
commit df97a11ac8

View File

@@ -1980,7 +1980,7 @@ class AdminControllerCore extends Controller
}
$filter_shop = '';
if ($this->multishop_context && Shop::isTableAssociated($this->table))
if ($this->multishop_context && Shop::isTableAssociated($this->table) && !empty($this->className))
{
$def = ObjectModel::getDefinition($this->className);
if (Shop::getContext() != Shop::CONTEXT_ALL || !empty($def['multishop']))