From e928368638ff0ed42a249005dff62de6e4dcbf8e Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Wed, 10 Sep 2025 15:17:04 +0530 Subject: [PATCH 001/197] Fixed: Incorrect information on the room type page regarding max capacity in front office --- themes/hotel-reservation-theme/product.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 9492fbc86..67f4a03fe 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -238,13 +238,13 @@ {/block} {block name='product_info_tab_room_guests'} - {if isset($room_type_info['adults']) && isset($room_type_info['children']) } + {if isset($room_type_info['max_adults']) && isset($room_type_info['max_children']) }
{l s='Max Capacity'}
-

{$room_type_info['adults']} {l s='Adults'}, {$room_type_info['children']} {if $room_type_info['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if} ({l s='Max guests'}: {$room_type_info['max_guests']|escape:'htmlall':'UTF-8'})

+

{$room_type_info['max_adults']} {l s='Adults'}, {$room_type_info['max_children']} {if $room_type_info['max_children'] > 1}{l s='Children'}{else}{l s='Child'}{/if} ({l s='Max guests'}: {$room_type_info['max_guests']|escape:'htmlall':'UTF-8'})

{/if} From cd9c51ce63ac3f84f7d6fd0bf0c1a3d4fdcf59cd Mon Sep 17 00:00:00 2001 From: amandeep sharma qlo Date: Thu, 6 Nov 2025 21:09:34 +0530 Subject: [PATCH 002/197] [Fix]: Open Redirection --- classes/controller/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 67d88e69a..cf38cfc5b 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -1417,8 +1417,8 @@ class AdminControllerCore extends Controller } elseif ($this->postImage($object->id) && !count($this->errors) && $this->_redirect) { $parent_id = (int)Tools::getValue('id_parent', 1); // Specific back redirect - if ($back = Tools::getValue('back')) { - $this->redirect_after = urldecode($back).'&conf=4'; + if (($back = Tools::secureReferrer(Tools::getValue('back'))) && $back != __PS_BASE_URI__) { + $this->redirect_after=urldecode($back).'&conf=4'; } // Specific scene feature // @todo change stay_here submit name (not clear for redirect to scene ... ) From 12b1aeb4b26dfe4ee2ab57385da53c05befbcaad Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Thu, 4 Dec 2025 12:26:19 +0530 Subject: [PATCH 003/197] remove installbulk action and add new feature to enable/ disable multiple modules at once in back office --- .../template/controllers/modules/js.tpl | 22 +++++++++ .../template/controllers/modules/list.tpl | 13 ++++-- controllers/admin/AdminModulesController.php | 45 ++++++++++++++++++- 3 files changed, 76 insertions(+), 4 deletions(-) diff --git a/admin/themes/default/template/controllers/modules/js.tpl b/admin/themes/default/template/controllers/modules/js.tpl index d91c1b3bb..e1d8e4d65 100644 --- a/admin/themes/default/template/controllers/modules/js.tpl +++ b/admin/themes/default/template/controllers/modules/js.tpl @@ -65,6 +65,28 @@ document.location.href=currentIndex+'&token='+token+'&'+action+'='+module_list.substring(1, module_list.length); } + // Module bulk enable/disable + function update_modules_activation_bulk(action) + { + var modules = document.getElementsByName('modules'); + var module_list = ''; + var type = 'enabled'; + + for (var i = 0; i < modules.length; i++) + { + if (modules[i].checked == true) + { + module_list += '|'+modules[i].value; + } + } + if(action=='bulkDisable'){ + type = 'disabled'; + } + + document.location.href=currentIndex+'&token='+token+'&bulkEnable=1&type='+type+'&modules='+module_list.substring(1, module_list.length); + } + + $('document').ready( function() { // ScrollTo if (anchor != '') diff --git a/admin/themes/default/template/controllers/modules/list.tpl b/admin/themes/default/template/controllers/modules/list.tpl index 6166962a4..3674543fe 100644 --- a/admin/themes/default/template/controllers/modules/list.tpl +++ b/admin/themes/default/template/controllers/modules/list.tpl @@ -191,11 +191,18 @@