Fixed: pr review issues

This commit is contained in:
amit sharma
2026-08-13 16:18:00 +05:30
parent b3989dc32a
commit e49f6f39bb
2 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@
<input type="text" class="form-control room_comment" value="{if isset($room_info['comment'])}{$room_info['comment']}{/if}" name="{$var_name_room_info|cat:'[comment]'}">
</td>
<td class="col-sm-2 center">
<a class="btn btn-default deactiveDatesModal {if $room_info['id_status'] != $rm_status['STATUS_TEMPORARY_INACTIVE']['id'] }disabled{/if}" data-toggle="modal" data-target="#deactiveDatesModal" data-id-stay="{if isset($room_info['id'])}{$room_info['id']}{/if}">{if $room_info['id_status'] != $rm_status['STATUS_TEMPORARY_INACTIVE']['id'] }{l s='Add Dates'}{else}{l s='View Dates'}{/if}
<a class="btn btn-default deactiveDatesModal {if $room_info['id_status'] != $rm_status['STATUS_TEMPORARY_INACTIVE']['id'] }disabled{/if}" data-toggle="modal" data-target="#deactiveDatesModal" data-id-room="{if isset($room_info['id'])}{$room_info['id']}{/if}">{if $room_info['id_status'] != $rm_status['STATUS_TEMPORARY_INACTIVE']['id'] }{l s='Add Dates'}{else}{l s='View Dates'}{/if}
</a>
<input type="hidden" class="form-control disable_dates_json" name="{$var_name_room_info|cat:'[disable_dates_json]'}" {if $room_info['id_status'] == $rm_status['STATUS_TEMPORARY_INACTIVE']['id']}value="{$room_info['disable_dates_json']|escape:'html':'UTF-8'}"{/if}>
</td>

View File

@@ -250,8 +250,8 @@ class HotelRoomType extends ObjectModel
$cache_key = 'HotelRoomType::getRoomTypeInfoByIdProduct_'.$id_product.'_'.$idLang;
if (!Cache::isStored($cache_key)) {
$sql = 'SELECT hrt.*, hbl.`hotel_name`,
COALESCE(hrtstl.`name`, "'.$this->selling_object_name.'") AS `selling_object_name`,
COALESCE(hrtstl.`plural_name`, "'.$this->selling_object_plural_name.'") AS `selling_object_plural_name`
COALESCE(hrtstl.`name`, "'.pSQL($this->selling_object_name).'") AS `selling_object_name`,
COALESCE(hrtstl.`plural_name`, "'.pSQL($this->selling_object_plural_name).'") AS `selling_object_plural_name`
FROM `'._DB_PREFIX_.'htl_room_type` AS hrt
INNER JOIN `'._DB_PREFIX_.'htl_branch_info_lang` AS hbl
ON (hbl.`id` = hrt.`id_hotel`
@@ -333,7 +333,7 @@ class HotelRoomType extends ObjectModel
$cache_key = 'HotelRoomType::getRoomTypeDetailByRoomTypeIds_'.$roomTypesList.'_'.$position.'_'.$fullDetail.'_'.$idLang;
if (!Cache::isStored($cache_key)) {
$sql = 'SELECT pl.`name`, COUNT(hri.`id`) AS `numberOfRooms`, hrt.`id_product`, `adults`, `children`, `max_adults`, `max_children`, `max_guests`, COALESCE(hrtstl.`name`, "'.$this->selling_object_name.'") AS `selling_object_name`, COALESCE(hrtstl.`plural_name`, "'.$this->selling_object_plural_name.'") AS `selling_object_plural_name`
$sql = 'SELECT pl.`name`, COUNT(hri.`id`) AS `numberOfRooms`, hrt.`id_product`, `adults`, `children`, `max_adults`, `max_children`, `max_guests`, COALESCE(hrtstl.`name`, "'.pSQL($this->selling_object_name).'") AS `selling_object_name`, COALESCE(hrtstl.`plural_name`, "'.pSQL($this->selling_object_plural_name).'") AS `selling_object_plural_name`
'.($position ? ', cp.`position`' : '').'
'.($fullDetail ? ', pl.`link_rewrite`, pl.`description_short`' : '').'
FROM `'._DB_PREFIX_.'htl_room_type` AS `hrt`