From 1959df04dcc552fd535bccc9ed3547650100b8bf Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Tue, 20 Jan 2026 12:42:31 +0530 Subject: [PATCH] Fixed: disable room types should not be visible in the suggestion during room reallocation. --- modules/hotelreservationsystem/classes/HotelBookingDetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hotelreservationsystem/classes/HotelBookingDetail.php b/modules/hotelreservationsystem/classes/HotelBookingDetail.php index 8b383bd04..680e7bf79 100644 --- a/modules/hotelreservationsystem/classes/HotelBookingDetail.php +++ b/modules/hotelreservationsystem/classes/HotelBookingDetail.php @@ -1815,7 +1815,7 @@ class HotelBookingDetail extends ObjectModel $context = Context::getContext(); foreach ($avail_rooms as $roomInfo) { $objProduct = new Product($roomInfo['id_product'], false, $context->language->id); - if($objProduct->active){ + if(Validate::isLoadedObject($objProduct) && $objProduct->active){ $availableRoomTypes[$roomInfo['id_product']]['id_product'] = $roomInfo['id_product']; $availableRoomTypes[$roomInfo['id_product']]['room_type_name'] = $objProduct->name; $availableRoomTypes[$roomInfo['id_product']]['rooms'][] = $roomInfo;