From dacf0320927a3def70722054c8603ee3b83710d1 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 17 Apr 2012 14:56:53 +0000 Subject: [PATCH] // 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 --- classes/ObjectModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ObjectModel.php b/classes/ObjectModel.php index 3c2c5087a..24734a439 100644 --- a/classes/ObjectModel.php +++ b/classes/ObjectModel.php @@ -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