我创建了一个自定义模块聊天,当我尝试从更多信息选项卡下的潜在客户模块中选择聊天记录时。
它给了我错误"Warning: Invalid argument supplied for foreach() in include\utils\ListViewUtils.php on line 1280"
,也没有列出任何聊天记录,但它对其他 vtiger 默认模块工作正常
这是我设置相关列表的代码
$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');
$accounts=Vtiger_Module::getInstance('Leads');
$accounts->setRelatedList(Vtiger_Module::getInstance('Chat'), 'Chat',Array('ADD','SELECT'));
请为此提供帮助。提前致谢。