// The capacity of enable / disable shops and shop groups is temporary disabled
This commit is contained in:
@@ -209,7 +209,7 @@ class AdminShopControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if (Tools::isSubmit('id_category_default'))
|
if (Tools::isSubmit('id_category_default'))
|
||||||
$_POST['id_category'] = Tools::getValue('id_category_default');
|
$_POST['id_category'] = Tools::getValue('id_category_default');
|
||||||
if ((Tools::isSubmit('status') ||
|
/*if ((Tools::isSubmit('status') ||
|
||||||
Tools::isSubmit('status'.$this->table) ||
|
Tools::isSubmit('status'.$this->table) ||
|
||||||
(Tools::isSubmit('submitAdd'.$this->table) && Tools::getValue($this->identifier) && !Tools::getValue('active'))) &&
|
(Tools::isSubmit('submitAdd'.$this->table) && Tools::getValue($this->identifier) && !Tools::getValue('active'))) &&
|
||||||
$this->loadObject() && $this->loadObject()->active)
|
$this->loadObject() && $this->loadObject()->active)
|
||||||
@@ -218,7 +218,7 @@ class AdminShopControllerCore extends AdminController
|
|||||||
$this->errors[] = Tools::displayError('You cannot disable the default shop.');
|
$this->errors[] = Tools::displayError('You cannot disable the default shop.');
|
||||||
else if (Shop::getTotalShops() == 1)
|
else if (Shop::getTotalShops() == 1)
|
||||||
$this->errors[] = Tools::displayError('You cannot disable the last shop.');
|
$this->errors[] = Tools::displayError('You cannot disable the last shop.');
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if ($this->errors)
|
if ($this->errors)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user