// Class OrderHistory: changeIdOrderState() & Order current_state

This commit is contained in:
PrestaEdit
2012-11-25 22:42:31 +01:00
parent f5d4fbccfd
commit dc43452f8d
+1
View File
@@ -217,6 +217,7 @@ class OrderHistoryCore extends ObjectModel
die(Tools::displayError('Invalid new order state')); 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 // 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->valid = $new_os->logable; $order->valid = $new_os->logable;
$order->update(); $order->update();