Update the id to id_hotel in the information tpl

This commit is contained in:
aradhana kumari
2026-01-16 13:31:04 +05:30
committed by azhar bhat
parent e567b0d46a
commit 4cb07af0c5
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@
<div class="col-sm-5">
<select name="id_hotel" id="hotel_place" class="form-control chosen">
{foreach from=$htl_info item=htl_dtl}
<option value="{$htl_dtl['id']}" >{$htl_dtl['hotel_name']}</option>
<option value="{$htl_dtl['id_hotel']}" >{$htl_dtl['hotel_name']}</option>
{/foreach}
</select>
<p class="help-block">{l s='Hotel once assigned cannot be reassigned'}</p>

View File

@@ -3064,7 +3064,7 @@ class AdminProductsControllerCore extends AdminController
if ($obj->id) {
if ($this->product_exists_in_shop) {
$objHotelInfo = new HotelBranchInformation();
$hotelInfo = $objHotelInfo->hotelsNameAndId();
$hotelInfo = HotelBranchInformation::getProfileAccessedHotels($this->context->employee->id_profile, 1);
if ($hotelInfo) {
$objRoomInfo = new HotelRoomInformation();
$roomStatus = $objRoomInfo->getAllRoomStatus();