[-] BO: Fix weight impact and default combination on combinations generator

This commit is contained in:
rGaillard
2012-09-14 15:45:11 +00:00
parent e5c147d0c8
commit 0b1faa3382
3 changed files with 30 additions and 29 deletions
+3 -3
View File
@@ -1079,12 +1079,12 @@ class ProductCore extends ObjectModel
$obj->available_date = '0000-00-00';
}
$obj->default_on = $default_on;
$default_on = 0;
foreach ($combination as $field => $value)
$obj->$field = $value;
$obj->default_on = $default_on;
$default_on = 0;
$obj->save();
if (!$id_combination)