Skip to content

Commit

Permalink
Merge pull request #554 from lakshya-webkul/gli-1147
Browse files Browse the repository at this point in the history
Resolved: room status update issue from active to inactive.
  • Loading branch information
rohit053 authored Mar 22, 2023
2 parents bb81643 + e43165c commit fbe6710
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 fbe6710

Please sign in to comment.