remove extra code from product controller

This commit is contained in:
Amit sharma
2026-05-20 12:53:07 +05:30
parent 748811250c
commit e04de090b0
2 changed files with 1 additions and 2 deletions

View File

@@ -480,8 +480,6 @@
</select>
</div>
</div>
{else}
<input type="hidden" name="id_room_type_selling_object" value="0">
{/if}

View File

@@ -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');