Index: branches/5.0.x/units/products/products_event_handler.php =================================================================== diff -u -N -r13531 -r13602 --- branches/5.0.x/units/products/products_event_handler.php (.../products_event_handler.php) (revision 13531) +++ branches/5.0.x/units/products/products_event_handler.php (.../products_event_handler.php) (revision 13602) @@ -1,6 +1,6 @@ $product_id, 'IsPrimary' => 1, 'MinQty' => 1, 'MaxQty' => -1, 'GroupId'=>$group_id); $pr_object->SetDBFieldsFromHash($field_values); $pr_object->SetField('Price', $price); - $ret = $pr_object->Create(); - if ($pr_object->mode == 't') { - $pr_object->setTempID(); - } - return $ret; + + return $pr_object->Create(); } }