// New order message for BackOffice order

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15291 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-05-14 17:31:00 +00:00
parent 86bf178c51
commit 30bc1f1de3
+2 -1
View File
@@ -796,7 +796,8 @@ class AdminOrdersControllerCore extends AdminController
$payment_module = Module::getInstanceByName($module_name);
$cart = new Cart((int)$id_cart);
Context::getContext()->customer = new Customer((int)$cart->id_customer);
$payment_module->validateOrder((int)$cart->id, (int)$id_order_state, $cart->getOrderTotal(true, Cart::BOTH), $payment_module->displayName, sprintf($this->l('Manual order - ID Employee :%d'), (int)Context::getContext()->cookie->id_employee), array(), null, false, $cart->secure_key);
$employee = new Employee((int)Context::getContext()->cookie->id_employee);
$payment_module->validateOrder((int)$cart->id, (int)$id_order_state, $cart->getOrderTotal(true, Cart::BOTH), $payment_module->displayName, $this->l('Manual order - Employee :').Tools::safeOutput(substr($employee->firstname, 0, 1).'. '.$employee->lastname), array(), null, false, $cart->secure_key);
if ($payment_module->currentOrder)
Tools::redirectAdmin(self::$currentIndex.'&id_order='.$payment_module->currentOrder.'&vieworder'.'&token='.$this->token);
}