// 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:
1 parent
f6059f0a67
commit
72c2781406
1 file changed
+2
-2
@@ -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