// Fix lot of multishop bugs (updateAssoShop reworked, remove multishop property for country / zone / currency / carrier, getList())
This commit is contained in:
1 parent
ba435ff3de
commit
7a6b54268e
10 files changed
+58
-57
No files matched your search
@@ -405,9 +405,8 @@ class AdminEmployeesControllerCore extends AdminController
|
||||
return false;
|
||||
}
|
||||
|
||||
$assos = $this->getAssoShop($this->table);
|
||||
|
||||
if (count($assos[0]) == 0 && $this->table = 'employee')
|
||||
$assos = $this->getSelectedAssoShop($this->table);
|
||||
if (!$assos && $this->table = 'employee')
|
||||
if (Shop::isFeatureActive() && _PS_ADMIN_PROFILE_ != $_POST['id_profile'])
|
||||
$this->errors[] = Tools::displayError('The employee must be associated with at least one shop');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user