Merge branch 'ticket-10657-PhileaOptimization'
This commit is contained in:
commit
199c56337b
@ -454,7 +454,12 @@
|
||||
$order->shipping_number = $parcel[0];
|
||||
$order->update();
|
||||
|
||||
if(in_array($order->id, $status_sent)) {
|
||||
$last_state = Db::getInstance()->getValue('
|
||||
SELECT `id_order_state`
|
||||
FROM `'._DB_PREFIX_.'order_state_current`
|
||||
WHERE `id_order` ='.(int)$order->id
|
||||
);
|
||||
if(in_array($order->id, $status_sent) && (int)$last_state != 4) {
|
||||
$history = new OrderHistory();
|
||||
$history->id_order = (int) $order->id;
|
||||
$history->changeIdOrderState(4, (int) $order->id);
|
||||
|
Loading…
Reference in New Issue
Block a user