From 4cb07af0c52273a38caabeb45383954cb7bb6e5a Mon Sep 17 00:00:00 2001 From: aradhana kumari Date: Fri, 16 Jan 2026 13:31:04 +0530 Subject: [PATCH] Update the id to id_hotel in the information tpl --- .../default/template/controllers/products/informations.tpl | 2 +- controllers/admin/AdminProductsController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/template/controllers/products/informations.tpl b/admin/themes/default/template/controllers/products/informations.tpl index fdfa02ee0..1e76c2079 100644 --- a/admin/themes/default/template/controllers/products/informations.tpl +++ b/admin/themes/default/template/controllers/products/informations.tpl @@ -139,7 +139,7 @@

{l s='Hotel once assigned cannot be reassigned'}

diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 58dbcac91..4b302dfa9 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -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();