Merge pull request #317 from Shagshag/patch-2
[-] SQL error in Combination::setAttributes
This commit is contained in:
@@ -134,7 +134,8 @@ class CombinationCore extends ObjectModel
|
||||
|
||||
public function setAttributes($ids_attribute)
|
||||
{
|
||||
if ($this->deleteAssociations())
|
||||
$result = $this->deleteAssociations();
|
||||
if ($result && !empty($ids_attribute))
|
||||
{
|
||||
$sql_values = array();
|
||||
foreach ($ids_attribute as $value)
|
||||
@@ -144,10 +145,8 @@ class CombinationCore extends ObjectModel
|
||||
INSERT INTO `'._DB_PREFIX_.'product_attribute_combination` (`id_attribute`, `id_product_attribute`)
|
||||
VALUES '.implode(',', $sql_values)
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
return false;
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function setWsProductOptionValues($values)
|
||||
|
||||
Reference in New Issue
Block a user