Fixed: pr review issues
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user