Merge pull request #211 from sumitwebkul/gli-540
Errors on cart rule page when add room type, which is not assigned to hotel, selected in room type condition
This commit is contained in:
@@ -277,6 +277,12 @@ class HotelBranchInformation extends ObjectModel
|
||||
unset($dataArray[$key]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($addAccessKey) {
|
||||
$dataArray[$key]['htl_access'] = 0;
|
||||
} else {
|
||||
unset($dataArray[$key]);
|
||||
}
|
||||
}
|
||||
} elseif (isset($row['id_product'])) {
|
||||
$objRoomType = new HotelRoomType();
|
||||
@@ -291,6 +297,12 @@ class HotelBranchInformation extends ObjectModel
|
||||
unset($dataArray[$key]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($addAccessKey) {
|
||||
$dataArray[$key]['htl_access'] = 0;
|
||||
} else {
|
||||
unset($dataArray[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user