diff --git a/core/components/minishop2/model/minishop2/minishop2.class.php b/core/components/minishop2/model/minishop2/minishop2.class.php index 66c938b5..e663196e 100644 --- a/core/components/minishop2/model/minishop2/minishop2.class.php +++ b/core/components/minishop2/model/minishop2/minishop2.class.php @@ -843,7 +843,8 @@ public function changeOrderStatus($order_id, $status_id) $response = $this->invokeEvent('msOnBeforeChangeOrderStatus', [ 'order' => $order, - 'status' => $order->get('status'), + 'old_status' => $old_status->get('id'), + 'status' => $status_id, ]); if (!$response['success']) { return $response['message']; @@ -855,6 +856,7 @@ public function changeOrderStatus($order_id, $status_id) $this->orderLog($order->get('id'), 'status', $status_id); $response = $this->invokeEvent('msOnChangeOrderStatus', [ 'order' => $order, + 'old_status' => $old_status->get('id'), 'status' => $status_id, ]); if (!$response['success']) {