sugarcrm version 6社区搜索电子邮件?

时间:2012-10-23 21:57:21

标签: sugarcrm

尝试添加通过电子邮件搜索sugarcrm 6社区版本的可能性。我已经更改了searchform2.php以允许它 但是当我搜索它时,不会返回任何结果。任何想法?

1 个答案:

答案 0 :(得分:1)

你应该只能将这样的条目添加到模块// metadata / SearchFields.php $ searchFields array ...

'email'=> array(
        'query_type' => 'default',
        'operator' => 'subquery',
        'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',
        'db_field' => array(
            'id',
        ),
        'vname' =>'LBL_ANY_EMAIL',
    ),

然后将'email'字段添加到模块// metadata / listviewdefs.php文件数组中,你应该很高兴。