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:
@@ -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