// Fixed bug tab AdminEmployee

This commit is contained in:
lLefevre committed 2011-10-17 12:10:18 +00:00
1 parent f1d5a3bf77
commit 96cc018ce8
1 file changed
+3 -2
+3 -2
View File
@@ -256,8 +256,9 @@ class AdminEmployees extends AdminTab
$assos = self::getAssoShop($this->table); $assos = self::getAssoShop($this->table);
if (!count($assos[0]) && $this->table = 'employee') if (count($assos[0]) == 0 && $this->table = 'employee')
$this->_errors[] = Tools::displayError('The employee must be associated with at least one shop'); if (Shop::isMultiShopActivated() && _PS_ADMIN_PROFILE_ != $_POST['id_profile'])
$this->_errors[] = Tools::displayError('The employee must be associated with at least one shop');
} }
return parent::postProcess(); return parent::postProcess();
} }