diff --git a/classes/order/Order.php b/classes/order/Order.php index 1ebfa6392..52d2b9afc 100644 --- a/classes/order/Order.php +++ b/classes/order/Order.php @@ -3106,7 +3106,7 @@ class OrderCore extends ObjectModel * @param bool $useEmail whether to email the customer about the change * @return bool whether the order status was actually changed */ - public function syncPaymentStatusAfterBookingRevert($useEmail = true) + public function changeOrderStatusOnRoomBookingStatusChange($useEmail = true) { if (!in_array($this->current_state, array( Configuration::get('PS_OS_NO_SHOW'), diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index a8bfffba2..6b7184614 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -9267,7 +9267,7 @@ class AdminOrdersControllerCore extends AdminController // a No-show room reverted back: the order is no longer completely // No-show/Cancelled, so restore its status from the paid amount $order = new Order($order->id); - $order->syncPaymentStatusAfterBookingRevert(); + $order->changeOrderStatusOnRoomBookingStatusChange(); } $success = $statusChanged; }