在自定义模块相关列表中单击添加电子邮件时,我收到错误TypeError: tagName is null
。
我使用的是账户模块中Accounts.php的代码。
function get_emails($id, $cur_tab_id, $rel_tab_id, $actions=false) {
global $log, $singlepane_view,$currentModule,$current_user, $adb;
$log->debug("Entering get_emails(".$id.") method ...");
$this_module = $currentModule;
$related_module = vtlib_getModuleNameById($rel_tab_id);
require_once("modules/$related_module/$related_module.php");
$other = new $related_module();
vtlib_setup_modulevars($related_module, $other);
$singular_modname = vtlib_toSingular($related_module);
$parenttab = getParentTab();
if ($singlepane_view == 'true')
$returnset = '&return_module=' . $this_module
. '&return_action=DetailView&return_id=' . $id;
else
$returnset = '&return_module=' . $this_module
. '&return_action=CallRelatedList&return_id=' . $id;
$button = '';
$button .= '<input type="hidden" name="email_directing_module">
<input type="hidden" name="record">';
.....all code from that file....modules/Accounts/Accuonts.php
if ($return_value == null) $return_value = Array();
$return_value['CUSTOM_BUTTON'] = $button;
$log->debug("Exiting get_emails method ...");
return $return_value;
}
请帮忙。提前谢谢。
首先我解释一下我的问题。所以很容易理解。我已经在我的自定义模块中添加了relatedlist。如果禁用了单窗格视图,则它会显示在更多信息选项卡中。当我单击添加电子邮件按钮时,会打开一个弹出窗口。当点击选择按钮时,会出现TypeError:tagName为null的错误。现在要解决这个问题,请访问网站/Smarty/templates/RelatedLists.tpl。在那里,它们是行号(大约)149上每个模块的if条件。在该条件下添加模块名称,问题就解决了。