Fix:: If you assign room type condition on that cart rule, Errors of hotel access if room type is not assigned to any hotel on cart rule page.

This commit is contained in:
sumit panwar
2021-01-30 17:41:37 +05:30
parent 6b7ef21e3a
commit 8fa8bfc682

View File

@@ -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]);
}
}
}
}