// Fix multishop in objectModel (langs were not correctly generated when an employee has not all auths on shops)
This commit is contained in:
@@ -473,7 +473,9 @@ abstract class ObjectModelCore
|
||||
if (!empty($this->def['multilang']))
|
||||
{
|
||||
$fields = $this->getFieldsLang();
|
||||
$shops = Shop::getShops(true, null, true);
|
||||
|
||||
// @todo : try to do something better than this
|
||||
$shops = Shop::getCompleteListOfShopsID();
|
||||
if ($fields && is_array($fields))
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user