Skip to content

Commit

Permalink
resolved issue on room status change
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshya-webkul committed Mar 1, 2023
1 parent 7f7122d commit e43165c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function deleteCartBookingData(
}

// return number of rooms deleted
return $numRooms;
return true;
}

public function addCartBookingData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function update($null_values = false)
{
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;
Expand Down

0 comments on commit e43165c

Please sign in to comment.