// Fix ObjectModel with multishop flag to false
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14685 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -256,7 +256,7 @@ abstract class ObjectModelCore
|
||||
$fields = $this->formatFields(self::FORMAT_COMMON);
|
||||
|
||||
// For retro compatibility, get common fields for default shop
|
||||
if ($this->id_shop == Configuration::get('PS_SHOP_DEFAULT'))
|
||||
if (!empty($this->def['multishop']) && $this->id_shop == Configuration::get('PS_SHOP_DEFAULT'))
|
||||
$fields = array_merge($fields, $this->getFieldsShop());
|
||||
|
||||
// Ensure that we get something to insert
|
||||
|
||||
Reference in New Issue
Block a user