// Fix multishop in objectModel (langs were not correctly generated when an employee has not all auths on shops)
This commit is contained in:
1 parent
785a3780e3
commit
595cc2bc81
2 files changed
+12
-1
No files matched your search
@@ -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