Merge pull request #554 from lakshya-webkul/gli-1147

Resolved: room status update issue from active to inactive.
This commit is contained in:
Rohit Jain
2023-03-22 17:51:51 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -432,7 +432,7 @@ class HotelCartBookingData extends ObjectModel
}
// return number of rooms deleted
return $numRooms;
return true;
}
public function addCartBookingData(

View File

@@ -76,7 +76,7 @@ class HotelRoomInformation extends ObjectModel
{
if ($idRoom = $this->id) {
// delete rooms from cart which are set inactive
if ($this->id_status == 2) {
if ($this->id_status == self::STATUS_INACTIVE) {
$objCartBookingData = new HotelCartBookingData();
if (!$objCartBookingData->deleteCartBookingData(0, 0, $idRoom)) {
return false;