动态过滤器无法正常运行vtiger CRM 6.1

时间:2015-02-02 12:54:11

标签: vtiger

我有2个版本6.1的vtiger crm。当我们尝试以新创建的用户身份登录时,在第一个crm过滤器中无法正常工作。在第二个crm过滤器工作正常。动态查询是不同的:

对于第一个crm,动态查询就像

SELECT vtiger_project.projectname, vtiger_project.linktoaccountscontacts, vtiger_project.startdate, vtiger_project.targetenddate, vtiger_project.actualenddate, vtiger_project.targetbudget, vtiger_project.progress, vtiger_project.projectstatus, vtiger_crmentity.smownerid, vtiger_project.projectid
FROM vtiger_project
INNER JOIN vtiger_crmentity ON vtiger_project.projectid = vtiger_crmentity.crmid
LEFT JOIN vtiger_users ON vtiger_crmentity.smcreatorid = vtiger_users.id
LEFT JOIN vtiger_groups ON vtiger_crmentity.smownerid = vtiger_groups.groupid
INNER JOIN vt_tmp_u11 vt_tmp_u11 ON vt_tmp_u11.id = vtiger_crmentity.smownerid
WHERE vtiger_crmentity.deleted=0
AND (( (TRIM(CONCAT(vtiger_users.first_name,' ',vtiger_users.last_name)) LIKE '%Sunil Agarwal%' OR vtiger_groups.groupname LIKE '%Sunil Agarwal%')) )
AND vtiger_project.projectid > 0

对于第二个crm,动态查询是

SELECT vtiger_project.projectname, vtiger_project.linktoaccountscontacts, vtiger_project.startdate, vtiger_project.targetenddate, vtiger_project.actualenddate, vtiger_project.targetbudget, vtiger_project.progress, vtiger_project.projectstatus, vtiger_crmentity.smownerid, vtiger_project.projectid
FROM vtiger_project
INNER JOIN vtiger_crmentity ON vtiger_project.projectid=vtiger_crmentity.crmid
LEFT JOIN vtiger_users ON vtiger_crmentity.smownerid = vtiger_users.id
LEFT JOIN vtiger_groups ON vtiger_crmentity.smownerid = vtiger_groups.groupid
INNER JOIN vt_tmp_u11 vt_tmp_u11 ON vt_tmp_u11.id = vtiger_crmentity.smownerid
WHERE vtiger_crmentity.deleted=0 
AND (((TRIM(CONCAT(vtiger_users.first_name,' ',vtiger_users.last_name)) LIKE '%Sunil Agarwal%' OR vtiger_groups.groupname LIKE '%Sunil Agarwal%')) ) 
AND vtiger_project.projectid > 0

请告诉我此部分取决于哪个设置:LEFT JOIN vtiger_users ON vtiger_crmentity.smownerid = vtiger_users.id

我试图找出相应的设置,但我没有得到任何成功的解决方案。

0 个答案:

没有答案