vt7: Duplicate call to $moduleFields = $relatedModuleModel->getFields(); in Vtiger_RelatedList_View()
In the main process function $moduleFields is assigned on line 19
http://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/views/RelatedList.php#L19
and it is then called again on line 85
http://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/views/RelatedList.php#L85
There is no reason for this, $moduleFields is not re-assigned anywhere in this function.