[-] BO : Fix bug #PSCFV-9722, do not propose adding root categories in categories when there is only one shop
This commit is contained in:
@@ -231,7 +231,7 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
{
|
||||
if (empty($this->display))
|
||||
{
|
||||
if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE'))
|
||||
if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') && count(Shop::getShops()) > 1)
|
||||
$this->toolbar_btn['new-url'] = array(
|
||||
'href' => self::$currentIndex.'&add'.$this->table.'root&token='.$this->token,
|
||||
'desc' => $this->l('Add new root category')
|
||||
|
||||
Reference in New Issue
Block a user