[-] BO : Fix bug #PSCFV-9722, do not propose adding root categories in categories when there is only one shop
This commit is contained in:
1 parent
d66f407fcb
commit
ea89c2235d
1 file changed
+1
-1
@@ -231,7 +231,7 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if (empty($this->display))
|
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(
|
$this->toolbar_btn['new-url'] = array(
|
||||||
'href' => self::$currentIndex.'&add'.$this->table.'root&token='.$this->token,
|
'href' => self::$currentIndex.'&add'.$this->table.'root&token='.$this->token,
|
||||||
'desc' => $this->l('Add new root category')
|
'desc' => $this->l('Add new root category')
|
||||||
|
|||||||
Reference in new issue
Block a user