From 905ed23be467dc59068f50dec665769e34984cd9 Mon Sep 17 00:00:00 2001 From: vSchoener Date: Thu, 5 Jan 2012 17:13:08 +0000 Subject: [PATCH] // Fix missing order_state when an order crash for any reasons --- controllers/admin/AdminCustomersController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index 49a34562d..991abc41f 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -568,6 +568,9 @@ class AdminCustomersControllerCore extends AdminController $orders_ko = array(); foreach ($orders as $order) { + if (!isset($order['order_state'])) + $order['order_state'] = $this->l('The state isn\'t still defined for this order'); + if ($order['valid']) { $orders_ok[] = $order;