From 4b4a4bbfce52c769f526cb8fe874ea721742f71a Mon Sep 17 00:00:00 2001 From: aFolletete Date: Sat, 17 Dec 2011 16:44:48 +0000 Subject: [PATCH] // fix notice error on payment validation git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11324 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/PaymentModule.php | 2 +- modules/cheque/cheque.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 255085a44..ec6e840a2 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -130,7 +130,7 @@ abstract class PaymentModuleCore extends Module die($errorMessage); } - $order_status = new OrderState((int)$id_order_state, (int)$order->id_lang); + $order_status = new OrderState((int)$id_order_state, (int)$cart->id_lang); if (!Validate::isLoadedObject($order_status)) throw new PrestashopException('Can\'t load Order state status'); diff --git a/modules/cheque/cheque.php b/modules/cheque/cheque.php index 11ad59444..e267a276b 100644 --- a/modules/cheque/cheque.php +++ b/modules/cheque/cheque.php @@ -260,7 +260,7 @@ class Cheque extends PaymentModule if (!Validate::isLoadedObject($customer)) Tools::redirect('index.php?controller=order&step=1'); - $currency = Tools::isSubmit('currency_payement') ? new Currency(Tools::getValue('currency_payement')) : $context->currency; + $currency = Tools::isSubmit('currency_payement') ? new Currency(Tools::getValue('currency_payement')) : $this->context->currency; $total = (float)$cart->getOrderTotal(true, Cart::BOTH); $mailVars = array(