TypeError:tag在自定义模块的相关列表中单击添加电子邮件时,名称为空

时间:2013-09-02 07:41:32

标签: php vtiger

点击自定义模块相关列表中的添加电子邮件,我收到错误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;
}

请为此提供帮助。提前谢谢。

1 个答案:

答案 0 :(得分:1)

首先我解释我的问题。所以很容易理解。我在自定义模块中添加了相关列表。如果禁用单窗格视图,则会在更多信息选项卡中显示。当我点击添加电子邮件按钮时,会打开一个弹出窗口。当单击选择按钮时出现错误,TypeError:tagName为null。现在要解决这个问题,请访问website / Smarty / templates / RelatedLists.tpl。因为它们是行号上的每个模块的if条件(接近大约)149。在该条件下添加模块名称,问题就解决了。