Update Combination.php
This commit is contained in:
1 parent
d293ae61cc
commit
2497e3b28c
1 file changed
+2
-1
@@ -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