[Vtigercrm-commits] [vtiger development] #4735: while selecting contact in Notes module getting Query failure error

vtiger development vtiger-tickets at trac.vtiger.com
Mon Dec 17 01:15:43 EST 2007


#4735: while selecting contact in Notes module getting Query failure error
-----------------------+----------------------------------------------------
 Reporter:  liza       |       Owner:  developer
     Type:  defect     |      Status:  new      
 Priority:  blocker    |   Milestone:           
Component:  vtigercrm  |     Version:  5.0.4    
 Keywords:             |  
-----------------------+----------------------------------------------------
 In Notes Module I have relate notes to one Accounts.then I have tried to
 select contacts. but the Popup displays following query

 SELECT vtiger_contactdetails.firstname, vtiger_contactdetails.lastname,
 vtiger_contactdetails.title, vtiger_contactdetails.accountid,
 vtiger_contactdetails.email, vtiger_contactdetails.phone,
 vtiger_crmentity.smownerid, vtiger_crmentity.crmid FROM
 vtiger_contactdetails INNER JOIN vtiger_crmentity ON
 vtiger_crmentity.crmid = vtiger_contactdetails.contactid INNER JOIN
 vtiger_contactaddress ON vtiger_contactaddress.contactaddressid =
 vtiger_contactdetails.contactid INNER JOIN vtiger_contactsubdetails ON
 vtiger_contactsubdetails.contactsubscriptionid =
 vtiger_contactdetails.contactid INNER JOIN vtiger_contactscf ON
 vtiger_contactscf.contactid = vtiger_contactdetails.contactid LEFT JOIN
 vtiger_account ON vtiger_account.accountid =
 vtiger_contactdetails.accountid LEFT JOIN vtiger_contactgrouprelation ON
 vtiger_contactgrouprelation.contactid = vtiger_contactdetails.contactid
 LEFT JOIN vtiger_groups ON vtiger_groups.groupname =
 vtiger_contactgrouprelation.groupname LEFT JOIN vtiger_users ON
 vtiger_users.id = vtiger_crmentity.smownerid LEFT JOIN
 vtiger_contactdetails vtiger_contactdetails2 ON
 vtiger_contactdetails.reportsto = vtiger_contactdetails2.contactid LEFT
 JOIN vtiger_customerdetails ON vtiger_customerdetails.customerid =
 vtiger_contactdetails.contactid WHERE vtiger_crmentity.deleted = 0 and
 vtiger_account.accountid= 1193and (vtiger_crmentity.smownerid in(3) or
 vtiger_crmentity.smownerid in(select vtiger_user2role.userid from
 vtiger_user2role inner join vtiger_users on
 vtiger_users.id=vtiger_user2role.userid inner join vtiger_role on
 vtiger_role.roleid=vtiger_user2role.roleid where vtiger_role.parentrole
 like 'H1::H2::H3::H4::H5::H6::%') or vtiger_crmentity.smownerid in(select
 shareduserid from vtiger_tmp_read_user_sharing_per where userid=3 and
 tabid=4) or (vtiger_crmentity.smownerid in (0) and (vtiger_groups.groupid
 in (2,3,1) or vtiger_groups.groupid in(select
 vtiger_tmp_read_group_sharing_per.sharedgroupid from
 vtiger_tmp_read_group_sharing_per where userid=3 and tabid=4)))) ORDER BY
 lastname ASC::->FUNCTION val.1193and does not exist

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4735>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list