// The capacity of enable / disable shops and shop groups is temporary disabled
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15786 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -209,7 +209,7 @@ class AdminShopControllerCore extends AdminController
|
||||
{
|
||||
if (Tools::isSubmit('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('submitAdd'.$this->table) && Tools::getValue($this->identifier) && !Tools::getValue('active'))) &&
|
||||
$this->loadObject() && $this->loadObject()->active)
|
||||
@@ -218,7 +218,7 @@ class AdminShopControllerCore extends AdminController
|
||||
$this->errors[] = Tools::displayError('You cannot disable the default shop.');
|
||||
else if (Shop::getTotalShops() == 1)
|
||||
$this->errors[] = Tools::displayError('You cannot disable the last shop.');
|
||||
}
|
||||
}*/
|
||||
|
||||
if ($this->errors)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user