Fix hotel city access method as introduced in tax flow changes

This commit is contained in:
Abhishek Kumar
2022-07-12 12:33:35 +05:30
parent ef44ddd00a
commit 126fbc87fb
3 changed files with 9 additions and 7 deletions

View File

@@ -271,9 +271,10 @@ class AdminDashboardControllerCore extends AdminController
$hotelOptions = array(array('id_hotel' => false, 'hotel_name' => $this->l('All Hotels')));
foreach ($idsHotel as $idHotel) {
$objHotelBranchInfo = new HotelBranchInformation($idHotel, $this->context->language->id);
$hotelAddressInfo = $objHotelBranchInfo->getAddress($idHotel);
$hotelOptions[] = array(
'id_hotel' => (int) $idHotel,
'hotel_name' => $objHotelBranchInfo->hotel_name.', '.$objHotelBranchInfo->city,
'hotel_name' => $objHotelBranchInfo->hotel_name.', '.$hotelAddressInfo['city'],
);
}
$this->tpl_view_vars = array(