diff --git a/modules/Products/views/InRelation.php b/modules/Products/views/InRelation.php index 951ea07d241e9a35bb992576193b435b85f40794..2d578497a0b8286df8b46bac87ef93fcd36bb908 100644 --- a/modules/Products/views/InRelation.php +++ b/modules/Products/views/InRelation.php @@ -81,7 +81,7 @@ class Products_InRelation_View extends Vtiger_RelatedList_View { $subProductsCostsInfo = array(); if ($moduleName === $relatedModuleName && $relationListView->tab_label === 'Product Bundles') {//Products && Child Products $parentModuleModel = $parentRecordModel->getModule(); - $relationField = $parentModuleModel->getField('qty_per_unit'); + // $relationField = $parentModuleModel->getField('qty_per_unit');// to avoid appending qty_per_unit if ((!$request->get('sortorder') && !$request->get('page'))) { $parentRecordModel->set('currency_id', getProductBaseCurrency($parentId, $parentModuleModel->getName())); @@ -106,7 +106,7 @@ class Products_InRelation_View extends Vtiger_RelatedList_View { $viewer->assign('RELATED_HEADERS', $header); $viewer->assign('RELATED_MODULE', $relatedModuleModel); $viewer->assign('RELATED_ENTIRES_COUNT', $noOfEntries); - $viewer->assign('RELATION_FIELD', $relationField); + // $viewer->assign('RELATION_FIELD', $relationField); $viewer->assign('SUB_PRODUCTS_TOTAL_COST', $subProductsTotalCost); $viewer->assign('SUB_PRODUCTS_COSTS_INFO', $subProductsCostsInfo); $viewer->assign('RELATED_FIELDS_INFO', json_encode($fieldsInfo));