From e04de090b0896df6bd6439b9d6474b2c29c02c77 Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Wed, 20 May 2026 12:53:07 +0530 Subject: [PATCH] remove extra code from product controller --- .../default/template/controllers/products/informations.tpl | 2 -- controllers/admin/AdminProductsController.php | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/themes/default/template/controllers/products/informations.tpl b/admin/themes/default/template/controllers/products/informations.tpl index cf0a667c7..356e0b258 100644 --- a/admin/themes/default/template/controllers/products/informations.tpl +++ b/admin/themes/default/template/controllers/products/informations.tpl @@ -480,8 +480,6 @@ - {else} - {/if} diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index ce48b8773..917a164a0 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -2283,6 +2283,7 @@ class AdminProductsControllerCore extends AdminController $_POST['description_short'] = strip_tags(Tools::getValue('description_short')); } $_POST['booking_method'] = Tools::getValue('booking_method_switch') ? (int)Tools::getValue('booking_method') : 0; + $_POST['id_room_type_selling_object'] = Tools::getValue('id_room_type_selling_object') ?? 0; // Check description short size without html $limit = (int)Configuration::get('PS_SHORT_DESC_LIMIT');