簡體   English   中英

vTiger-無法從“更多信息”選項卡下的“線索”模塊中選擇“自定義”模塊記錄

[英]vTiger - Cannot select Custom module records from a Leads Module under More Information tab

我已經創建了一個自定義模塊“ 聊天”,並且嘗試從“更多信息”選項卡下的“ 線索”模塊中選擇聊天記錄。

它給我錯誤"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'));

請為此提供幫助。 提前致謝。

您必須按照Comment中的說明創建一個函數,並且代碼與模塊之間的設置關系錯誤。 您必須使用此代碼。

 $module = Vtiger_Module::getInstance('Store');
 $storemodule1 = Vtiger_Module::getInstance('Calendar');
 $relationLabel = 'Activities';
 $function_name = 'get_activities';
 $module->setRelatedList( $storemodule1, $relationLabel, Array('ADD','SELECT'), $function_name );

您將創建的函數將其替換為“ get_activities”,並且我認為您知道還需要更改其他值。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM