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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17378 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-14 15:45:11 +00:00
parent d59308a9b6
commit d13be9e69e
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)