[-] BO : fix #PSTEST-1123 - Changing default product attribute is broken
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14419 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -1185,11 +1185,11 @@ class ProductCore extends ObjectModel
|
||||
{
|
||||
$result = Db::getInstance()->update('product_attribute', array(
|
||||
'default_on' => 1
|
||||
), 'id_product` = '.(int)$this->id.' AND `id_product_attribute` = '.(int)$id_product_attribute);
|
||||
), '`id_product` = '.(int)$this->id.' AND `id_product_attribute` = '.(int)$id_product_attribute);
|
||||
|
||||
$result &= Db::getInstance()->update('product', array(
|
||||
'cache_default_attribute' => (int)$id_product_attribute,
|
||||
), 'id_product = '.(int)$this->id);
|
||||
), '`id_product` = '.(int)$this->id);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user