diff --git a/classes/order/OrderHistory.php b/classes/order/OrderHistory.php index 73d45017f..c9a87ff90 100644 --- a/classes/order/OrderHistory.php +++ b/classes/order/OrderHistory.php @@ -217,7 +217,7 @@ class OrderHistoryCore extends ObjectModel die(Tools::displayError('Invalid new order state')); // the order is valid if and only if the invoice is available and the order is not cancelled - $order->->current_state = $this->id_order_state; + $order->current_state = $this->id_order_state; $order->valid = $new_os->logable; $order->update();