Merge pull request #540 from lakshya-webkul/gli-1150
Fixed: totalAvailableRooms warning issue resolved on room detail page
This commit is contained in:
@@ -603,6 +603,7 @@ class ProductControllerCore extends FrontController
|
||||
$quantity = 1;
|
||||
}
|
||||
|
||||
$totalAvailableRooms = 0;
|
||||
if ($hotelRoomData = $objBookingDetail->DataForFrontSearch($bookingParams)) {
|
||||
$totalAvailableRooms = $hotelRoomData['stats']['num_avail'];
|
||||
$quantity = ($quantity > $totalAvailableRooms) ? $totalAvailableRooms : $quantity;
|
||||
|
||||
Reference in New Issue
Block a user