[-] 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:
1 parent
480cce924a
commit
98cd41799f
1 file changed
+2
-2
+2
-2
@@ -1185,11 +1185,11 @@ class ProductCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
$result = Db::getInstance()->update('product_attribute', array(
|
$result = Db::getInstance()->update('product_attribute', array(
|
||||||
'default_on' => 1
|
'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(
|
$result &= Db::getInstance()->update('product', array(
|
||||||
'cache_default_attribute' => (int)$id_product_attribute,
|
'cache_default_attribute' => (int)$id_product_attribute,
|
||||||
), 'id_product = '.(int)$this->id);
|
), '`id_product` = '.(int)$this->id);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user