From cf3143475b54d37827644a3183bbc58ddecbe76c Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 1 Dec 2023 19:27:47 +0530 Subject: [PATCH] update error message when room cannot be set inactive --- controllers/admin/AdminProductsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 1597311f4..704b2594b 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3253,7 +3253,7 @@ class AdminProductsControllerCore extends AdminController if ($roomInfo['id_status'] == HotelRoomInformation::STATUS_INACTIVE) { $objHotelRoomInformation = new HotelRoomInformation(); if (count($objHotelRoomInformation->getFutureBookings($roomInfo['id']))) { - $this->errors[] = sprintf(Tools::displayError('Cannot change room %s status to inactive as it already has some bookings, Please check the bookings and move those bookings to another room if you want to disable this room'), $roomInfo['room_num']); + $this->errors[] = sprintf(Tools::displayError('Cannot change room %s status to inactive as it already has some bookings, Please check the bookings and move those bookings to another room if you want make this room inactive'), $roomInfo['room_num']); } } elseif ($roomInfo['id_status'] == HotelRoomInformation::STATUS_TEMPORARY_INACTIVE) { $disableDates = json_decode($roomInfo['disable_dates_json'], true);