// Fix missing order_state when an order crash for any reasons

This commit is contained in:
vSchoener
2012-01-05 17:13:08 +00:00
parent 3b5af2585d
commit 905ed23be4
@@ -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;