Update Combination.php
This commit is contained in:
@@ -135,7 +135,8 @@ class CombinationCore extends ObjectModel
|
|||||||
public function setAttributes($ids_attribute)
|
public function setAttributes($ids_attribute)
|
||||||
{
|
{
|
||||||
$result = $this->deleteAssociations();
|
$result = $this->deleteAssociations();
|
||||||
if ($result && !empty($ids_attribute)) {
|
if ($result && !empty($ids_attribute))
|
||||||
|
{
|
||||||
$sql_values = array();
|
$sql_values = array();
|
||||||
foreach ($ids_attribute as $value)
|
foreach ($ids_attribute as $value)
|
||||||
$sql_values[] = '('.(int)$value.', '.(int)$this->id.')';
|
$sql_values[] = '('.(int)$value.', '.(int)$this->id.')';
|
||||||
|
|||||||
Reference in New Issue
Block a user