From 8fafdebbbb61e36be7f4c27c2eed4d87890ae2f7 Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Mon, 7 Oct 2024 12:17:24 +0530 Subject: [PATCH] Fixed: getting validation issue if reallocation is done from Book Now page from back-office. --- .../controllers/admin/AdminHotelRoomsBookingController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php index 1d5ed19b8..04d0dc8a6 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php @@ -198,7 +198,7 @@ class AdminHotelRoomsBookingController extends ModuleAdminController $this->errors[] = $this->l('Selected room is not available for reallocation.'); } elseif (!in_array($idRoomToReallocate, array_column($availableRooms, 'id_room'))) { $this->errors[] = $this->l('Selected room is not available for reallocation.'); - } elseif (!Validate::isPrice($priceDiff)) { + } elseif (!Validate::isFloat($priceDiff)) { $this->errors[] = $this->l('Invalid price difference of the room types.'); } } else {