[Vtigercrm-commits] [vtiger development] #4805: Can't create Report with Campaign Source field
vtiger development
vtiger-tickets at trac.vtiger.com
Sat Jan 5 06:50:37 EST 2008
#4805: Can't create Report with Campaign Source field
--------------------------+-------------------------------------------------
Reporter: shahulhameed | Owner: developer
Type: defect | Status: new
Priority: critical | Milestone:
Component: vtigercrm | Version: 5.0.4
Keywords: Reports |
--------------------------+-------------------------------------------------
Create a report with Contact as primary module and Potential as secondary
module with ''''Campaign Source'''' field. Then open that report.
Query Failed Occurred:
----
Query Failed:select vtiger_contactdetails.salutation AS
"Contacts_Salutation", vtiger_contactdetails.firstname AS
"Contacts_First_Name", vtiger_contactdetails.phone AS
"Contacts_Office_Phone", vtiger_contactdetails.lastname AS
"Contacts_Last_Name", vtiger_contactdetails.mobile AS
...
...
::->Unknown column 'vtiger_campaign.campaignname' in 'field list'
----
Reason: Missing campaign table joining when Potential as secondary module
of contacts.
'''FIX:'''
Apply the following join on file modules/Reports/ReportRun.php on line
1013.
ie., '''after this line'''
left join vtiger_users as vtiger_usersPotentials on
vtiger_usersPotentials.id = vtiger_crmentityPotentials.smownerid
'''Add the following line'''
left join vtiger_campaign on vtiger_potential.campaignid =
vtiger_campaign.campaignid
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4805>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list