// Some fix + multistore for import tools

This commit is contained in:
rMalie committed 2011-07-07 12:18:27 +00:00
1 parent 1c7225b4dc
commit 52be7fe939
7 files changed
+252 -128

No files matched your search

+3 -3
View File
@@ -237,13 +237,13 @@ abstract class ObjectModelCore
}
}
if(!Tools::isMultishopActivated())
if (!Tools::isMultishopActivated())
{
if (isset($assos[$this->table]) && $assos[$this->table]['type'] == 'shop')
$result &= $this->associateTo(array((int)Shop::getCurrentShop(true)), 'shop');
$result &= $this->associateTo(Shop::getCurrentShop(true), 'shop');
$assos = GroupShop::getAssoTables();
if (isset($assos[$this->table]) && $assos[$this->table]['type'] == 'group_shop')
$result &= $this->associateTo(array((int)Shop::getCurrentGroupShop()), 'group_shop');
$result &= $this->associateTo(Shop::getCurrentGroupShop(), 'group_shop');
}
return $result;
}