From 430b222046cf7c729456edbf2854cfce9da3210a Mon Sep 17 00:00:00 2001 From: sumit panwar Date: Wed, 27 Jan 2021 21:15:58 +0530 Subject: [PATCH] Other module setting in Hotel Reservation System Settings is not usable. We should give configuration of modules in their separate Configuration tab --- ...minHotelConfigurationSettingController.php | 1 - ...dminOtherHotelModulesSettingController.php | 13 -- .../hotelreservationsystem.php | 1 - .../helpers/view/view.tpl | 9 - .../wkhotelfilterblock/wkhotelfilterblock.php | 155 ++++++++++++++---- 5 files changed, 123 insertions(+), 56 deletions(-) delete mode 100644 modules/hotelreservationsystem/controllers/admin/AdminOtherHotelModulesSettingController.php diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelConfigurationSettingController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelConfigurationSettingController.php index 36b4a5d2f..2ddda23fc 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelConfigurationSettingController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelConfigurationSettingController.php @@ -28,7 +28,6 @@ class AdminHotelConfigurationSettingController extends ModuleAdminController 'general_setting_link' => $this->context->link->getAdminLink('AdminHotelGeneralSettings'), 'payment_setting_link' => $this->context->link->getAdminLink('AdminPaymentsSetting'), 'order_restrict_setting_link' => $this->context->link->getAdminLink('AdminOrderRestrictSettings'), - 'other_module_setting_link' => $this->context->link->getAdminLink('AdminOtherHotelModulesSetting'), 'additional_demand_setting_link' => $this->context->link->getAdminLink('AdminRoomTypeGlobalDemand'), ); // Reviews setting link if only productcomment module is enabled diff --git a/modules/hotelreservationsystem/controllers/admin/AdminOtherHotelModulesSettingController.php b/modules/hotelreservationsystem/controllers/admin/AdminOtherHotelModulesSettingController.php deleted file mode 100644 index daef03f5f..000000000 --- a/modules/hotelreservationsystem/controllers/admin/AdminOtherHotelModulesSettingController.php +++ /dev/null @@ -1,13 +0,0 @@ -table = 'configuration'; - $this->className = 'Configuration'; - $this->bootstrap = true; - $this->fields_options = array(); - Hook::exec('addOtherModuleSetting', array('fields_options' => &$this->fields_options)); - parent::__construct(); - } -} diff --git a/modules/hotelreservationsystem/hotelreservationsystem.php b/modules/hotelreservationsystem/hotelreservationsystem.php index 7111dfe36..292d46f93 100644 --- a/modules/hotelreservationsystem/hotelreservationsystem.php +++ b/modules/hotelreservationsystem/hotelreservationsystem.php @@ -597,7 +597,6 @@ class hotelreservationsystem extends Module //Controllers which are to be used in this modules but we have not to create tab for those ontrollers... $this->installTab('AdminOrderRestrictSettings', 'order restrict configuration', false, false); $this->installTab('AdminHotelGeneralSettings', 'Hotel General configuration', false, false); - $this->installTab('AdminOtherHotelModulesSetting', 'other hotel configuration', false, false); $this->installTab('AdminPaymentsSetting', 'payments configuration', false, false); $this->installTab('AdminHotelFeaturePricesSettings', 'feature pricing configuration', false, false); $this->installTab('AdminRoomTypeGlobalDemand', 'Additional demand configuration', false, false); diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_configuration_setting/helpers/view/view.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_configuration_setting/helpers/view/view.tpl index f11129b2d..fea8f40ce 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_configuration_setting/helpers/view/view.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/hotel_configuration_setting/helpers/view/view.tpl @@ -40,15 +40,6 @@ -