Skip to content

Commit

Permalink
Merge pull request #540 from lakshya-webkul/gli-1150
Browse files Browse the repository at this point in the history
Fixed: totalAvailableRooms warning issue resolved on room detail page
  • Loading branch information
rohit053 authored Mar 6, 2023
2 parents 7f7122d + bda0b5d commit 52ef3d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/front/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ public function assignBookingFormVars(
$quantity = 1;
}

$totalAvailableRooms = 0;
if ($hotelRoomData = $objBookingDetail->DataForFrontSearch($bookingParams)) {
$totalAvailableRooms = $hotelRoomData['stats']['num_avail'];
$quantity = ($quantity > $totalAvailableRooms) ? $totalAvailableRooms : $quantity;
Expand Down

0 comments on commit 52ef3d7

Please sign in to comment.