diff --git a/admin-dev/themes/default/template/controllers/modules_positions/form.tpl b/admin-dev/themes/default/template/controllers/modules_positions/form.tpl index 163785cb2..404008365 100644 --- a/admin-dev/themes/default/template/controllers/modules_positions/form.tpl +++ b/admin-dev/themes/default/template/controllers/modules_positions/form.tpl @@ -100,8 +100,12 @@ var len = values.length; list.find('option').prop('selected', false); - for (var i = 0; i < len; i++) - list.find('option[value="' + $.trim(values[i]) + '"]').prop('selected', true); + for (var i = 0; i < len; i++) { + var value = $.trim(values[i]); + list.find('option').filter(function() { + return this.value === value; + }).prop('selected', true); + } } function position_exception_listchange() { var obj = $(this); diff --git a/admin-dev/themes/default/template/controllers/products/booked_room_date_ranges_list.tpl b/admin-dev/themes/default/template/controllers/products/booked_room_date_ranges_list.tpl index b5555cbcf..3662fa30c 100644 --- a/admin-dev/themes/default/template/controllers/products/booked_room_date_ranges_list.tpl +++ b/admin-dev/themes/default/template/controllers/products/booked_room_date_ranges_list.tpl @@ -20,7 +20,7 @@ * @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0 *} -{sprintf({l s='The room "%s" already has a booking for the selected date range.'}, $orderDetails->room_num)} +{sprintf({l s='The room "%s" already has a booking for the selected date range.'}, $orderDetails->room_num|escape:'html':'UTF-8')}
{l s='Order ID'}: #{$orderDetails->id_order|intval} diff --git a/admin-dev/themes/default/template/controllers/products/configuration.tpl b/admin-dev/themes/default/template/controllers/products/configuration.tpl index 5e9a836e7..8c5c1cc0e 100644 --- a/admin-dev/themes/default/template/controllers/products/configuration.tpl +++ b/admin-dev/themes/default/template/controllers/products/configuration.tpl @@ -95,20 +95,20 @@ - + - + - + {if $room_info['id_status'] != $rm_status['STATUS_TEMPORARY_INACTIVE']['id'] }{l s='Add Dates'}{else}{l s='View Dates'}{/if} @@ -1609,7 +1609,7 @@ roomNum = '( '+'{l s='%s No' sprintf=$htl_room_type['selling_object_plural_name']}'+' '+roomNum+')'; } - $('#deactiveDatesModal .disable_dates_room_num').html(roomNum); + $('#deactiveDatesModal .disable_dates_room_num').text(roomNum); if (isNaN(idRoom)) { DisableDatesObj.restrictCalendarActions(); return; diff --git a/admin-dev/themes/default/template/controllers/products/lengthofstay.tpl b/admin-dev/themes/default/template/controllers/products/lengthofstay.tpl index 5baeb9720..8541ed1f0 100644 --- a/admin-dev/themes/default/template/controllers/products/lengthofstay.tpl +++ b/admin-dev/themes/default/template/controllers/products/lengthofstay.tpl @@ -148,13 +148,13 @@
- + {l s='day(s)'}
- + {l s='day(s)'}
diff --git a/controllers/admin/AdminModulesPositionsController.php b/controllers/admin/AdminModulesPositionsController.php index f0adb6c0e..e68305de4 100644 --- a/controllers/admin/AdminModulesPositionsController.php +++ b/controllers/admin/AdminModulesPositionsController.php @@ -446,11 +446,11 @@ class AdminModulesPositionsControllerCore extends AdminController $file_list = ($file_list) ? array($file_list) : array(); } - $content = '

'; + $content = '

'; if ($shop_id) { $shop = new Shop($shop_id); - $content .= ' ('.$shop->name.')'; + $content .= ' ('.Tools::safeOutput($shop->name).')'; } $content .= '

@@ -463,14 +463,14 @@ class AdminModulesPositionsControllerCore extends AdminController foreach ($file_list as $k => $v) { if (! array_key_exists($v, $controllers)) { - $content .= ''; + $content .= ''; } } $content .= ''; foreach ($controllers as $k => $v) { - $content .= ''; + $content .= ''; } $modules_controllers_type = array('admin' => $this->l('Admin modules controller'), 'front' => $this->l('Front modules controller')); @@ -479,7 +479,7 @@ class AdminModulesPositionsControllerCore extends AdminController $all_modules_controllers = Dispatcher::getModuleControllers($type); foreach ($all_modules_controllers as $module => $modules_controllers) { foreach ($modules_controllers as $cont) { - $content .= ''; + $content .= ''; } } } diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php index 94ffc60e4..25932eabf 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php @@ -119,8 +119,8 @@ class AdminHotelRoomsBookingController extends ModuleAdminController $hotelBranchesInfo = HotelBranchInformation::filterDataByHotelAccess($hotelBranchesInfo, $this->context->employee->id_profile, 'id'); if ($hotelBranchesInfo) { - if (Tools::getValue('date_from')) { - $date_from = Tools::getValue('date_from'); + if (Tools::getValue('date_from') && Validate::isDate(Tools::getValue('date_from'))) { + $date_from = date('Y-m-d', strtotime(Tools::getValue('date_from'))); } else { $date_from = date('Y-m-d'); } @@ -144,7 +144,7 @@ class AdminHotelRoomsBookingController extends ModuleAdminController } if (Tools::getValue('id_hotel')) { - $id_hotel = Tools::getValue('id_hotel'); + $id_hotel = (int) Tools::getValue('id_hotel'); } else { if ($htl_info = $objHotelBranchInformation->hotelBranchesInfo(false, 1)) { // filter hotels as per accessed hotels @@ -160,7 +160,7 @@ class AdminHotelRoomsBookingController extends ModuleAdminController } if (Tools::getValue('id_room_type')) { - $id_room_type = Tools::getValue('id_room_type'); + $id_room_type = (int) Tools::getValue('id_room_type'); } else { $id_room_type = 0; } diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl index 59e073aa1..2621c610a 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl @@ -167,7 +167,7 @@ {/if} {/if} - +