Merge pull request #1018 from vishal-singh-webkul/gli-1818

Fixed: Notices and display issue when there is no rooms and no hotel available.
This commit is contained in:
Rohit Jain
2024-07-02 14:20:01 +05:30
committed by GitHub
3 changed files with 9 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ class AdminNormalProductsControllerCore extends AdminController
$idServiceCategory = Configuration::get('PS_SERVICE_CATEGORY');
$this->objLocationsCategory = new Category($idServiceCategory, $this->context->language->id);
$nestedCategories = Category::getNestedCategories($idServiceCategory);
if ($nestedCategories) {
if (isset($nestedCategories[$idServiceCategory]['children']) && $nestedCategories[$idServiceCategory]['children']) {
foreach ($nestedCategories[$idServiceCategory]['children'] as $childCategory) {
$this->buildCategoryOptions($childCategory);
}