title: vTiger - Cannot select Custom module records from a Leads Module under More Information tab
body: <p>I have create a custom module <strong>Chat</strong> and when am trying to select Chat records from a <strong>Leads</strong> Module under the More Information tab.</p>
  
  <p>It gives me error <code>"Warning: Invalid argument supplied for foreach() in include\utils\ListViewUtils.php on line 1280"</code> and also its not listing any chats records but its working fine for other vtiger default module</p>
  
  <p>Here is my code to set a Related List</p>
  
  <pre><code>$Vtiger_Utils_Log = true;
  include_once('vtlib/Vtiger/Menu.php');
  include_once('vtlib/Vtiger/Module.php');
  
  $accounts=Vtiger_Module::getInstance('Leads');
  $accounts-&gt;setRelatedList(Vtiger_Module::getInstance('Chat'), 'Chat',Array('ADD','SELECT'));
  </code></pre>
  
  <p>Please help for this. Thanks in advance.</p>