From 24eaf58092a38b9518362bd6434711f435f01377 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Thu, 5 Jul 2012 08:30:17 +0000 Subject: [PATCH] [-] BO : fix #PSCFV-3027 --- controllers/front/ContactController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/front/ContactController.php b/controllers/front/ContactController.php index a622ef86e..47f472c03 100644 --- a/controllers/front/ContactController.php +++ b/controllers/front/ContactController.php @@ -117,10 +117,13 @@ class ContactControllerCore extends FrontController } if (!empty($contact->email)) { + $id_order = (int)Tools::getValue('id_order', 0); + $order = new Order($id_order); + $mail_var_list = array( '{email}' => $from, '{message}' => Tools::nl2br(stripslashes($message)), - '{id_order}' => (int)Tools::getValue('id_order'), + '{id_order}' => $id_order, '{order_name}' => $order->getUniqReference(), '{attached_file}' => $_FILES['fileUpload']['name'] ? $_FILES['fileUpload']['name'] : '');