[-] FO : #PSFV-813 - Fix bug with partial cartrules and free order

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14863 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte committed 2012-04-25 08:51:13 +00:00
1 parent 4612b511ca
commit f73397db89
1 file changed
+1 -1
+1 -1
View File
@@ -371,7 +371,7 @@ abstract class PaymentModuleCore extends Module
if (count($order_list) == 1 && $values['tax_incl'] > $order->total_products_wt && $cart_rule['obj']->partial_use == 1 && $cart_rule['obj']->reduction_amount > 0) if (count($order_list) == 1 && $values['tax_incl'] > $order->total_products_wt && $cart_rule['obj']->partial_use == 1 && $cart_rule['obj']->reduction_amount > 0)
{ {
// Create a new voucher from the original // Create a new voucher from the original
$voucher = clone $cart_rule['obj']; $voucher = new CartRule($cart_rule['obj']->id); // We need to instantiate the CartRule without lang parameter to allow saving it
unset($voucher->id); unset($voucher->id);
// Set a new voucher code // Set a new voucher code