Merge branch 'develop' into gli-2609

This commit is contained in:
vishalsingh.qlo325
2025-06-17 10:12:00 +05:30
4 changed files with 47 additions and 44 deletions

View File

@@ -2985,7 +2985,7 @@ class AdminNormalProductsControllerCore extends AdminController
$allAssociations = $objRoomTypeServiceProduct->getAssociatedHotelsAndRoomType($product->id);
if (Product::SELLING_PREFERENCE_WITH_ROOM_TYPE == $product->selling_preference_type) {
$associatedRoomTypes = $allAssociations['room_type'];
$selectedRoomTypes = Tools::getValue('room_type_box', array());
$selectedRoomTypes = Tools::getValue('RT_tree_room_type_box', array());
// Generate list of new associations
$newRoomTypes = array();
@@ -3067,7 +3067,7 @@ class AdminNormalProductsControllerCore extends AdminController
} elseif (Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE == $product->selling_preference_type) {
// Add room types linking
$associatedRoomTypes = $allAssociations['room_type'];
$selectedRoomTypes = Tools::getValue('room_type_box', array());
$selectedRoomTypes = Tools::getValue('RT_tree_room_type_box', array());
// Generate list of new associations
$newRoomTypes = array();
foreach ($selectedRoomTypes as $selectedRoomType) {
@@ -3882,7 +3882,8 @@ class AdminNormalProductsControllerCore extends AdminController
$tree->setData(HotelHelper::generateTreeData([
'rootNode' => HotelHelper::NODE_HOTEL,
'leafNode' => HotelHelper::NODE_ROOM_TYPE,
'selectedElements' => $selectedRoomTypes
'selectedElements' => $selectedRoomTypes,
'prefix' => 'RT_tree_'
]))
->setUseCheckBox(true)
->setAutoSelectChildren(true)