From ca2bdaa1e899ebfccb47ad56b9a4f332506ab864 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 25 Apr 2012 08:51:13 +0000 Subject: [PATCH] [-] FO : #PSFV-813 - Fix bug with partial cartrules and free order --- classes/PaymentModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 7b35007d3..675b9219c 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -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) { // 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); // Set a new voucher code