[-] BO: association of product attributes on associating a product to another shop #PSCFV-8735
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user