[-] BO: association of product attributes on associating a product to another shop #PSCFV-8735

This commit is contained in:
Rémi Gaillard
2013-06-13 14:30:21 +02:00
parent e8288c5d7a
commit f5dfb12e4d
2 changed files with 33 additions and 2 deletions
+1 -1
View File
@@ -633,7 +633,7 @@ abstract class ObjectModelCore
$shop_exists = ObjectModel::$db->getValue('SELECT '.$this->def['primary'].' FROM '._DB_PREFIX_.$this->def['table'].'_shop WHERE '.$where);
if ($shop_exists)
$result &= ObjectModel::$db->update($this->def['table'].'_shop', $fields, $where, 0, $null_values);
else if (Shop::getContext() == Shop::CONTEXT_SHOP)
elseif (Shop::getContext() == Shop::CONTEXT_SHOP)
$result &= ObjectModel::$db->insert($this->def['table'].'_shop', $all_fields, $null_values);
}
}