// Product is now correctly inserted in product_shop for existant products

This commit is contained in:
rGaillard
2012-05-21 09:46:53 +00:00
parent 3f0c0f6828
commit 502c16dcba
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -547,8 +547,7 @@ abstract class ObjectModelCore
{
$fields['id_shop'] = (int)$id_shop;
$all_fields['id_shop'] = (int)$id_shop;
$where = $this->def['primary'].' = '.(int)$this->id.' AND id_shop = '.(int)$id_shop;
$result &= Db::getInstance()->update($this->def['table'].'_shop', $fields, $where, 0, $null_values);
$result &= Db::getInstance()->insert($this->def['table'].'_shop', $fields, $null_values, true, Db::REPLACE);
}
}