// Fixed bug tab AdminEmployee
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9387 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
336fb68ef4
commit
154c7a9ed9
1 file changed
+3
-2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user