[Vtigercrm-commits] [vtiger-commits] r5416 - /vtigercrm/trunk/modules/Campaigns/Campaign.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 00:01:46 EDT 2006
Author: saraj
Date: Wed Apr 26 22:01:43 2006
New Revision: 5416
Log:
changes made to support customfield for campaign module
Modified:
vtigercrm/trunk/modules/Campaigns/Campaign.php
Modified: vtigercrm/trunk/modules/Campaigns/Campaign.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/Campaign.php (original)
+++ vtigercrm/trunk/modules/Campaigns/Campaign.php Wed Apr 26 22:01:43 2006
@@ -29,8 +29,8 @@
var $id;
var $mode;
- var $tab_name = Array('crmentity','campaign');
- var $tab_name_index = Array('crmentity'=>'crmid','campaign'=>'campaignid');
+ var $tab_name = Array('crmentity','campaign','campaignscf');
+ var $tab_name_index = Array('crmentity'=>'crmid','campaign'=>'campaignid','campaignscf'=>'campaignid');
var $column_fields = Array();
var $sortby_fields = Array('campaignname','smownerid','expectedcost');
@@ -66,8 +66,8 @@
$button = '';
$returnset = '&return_module=Campaigns&return_action=DetailView&return_id='.$id;
- $query = 'SELECT contactdetails.*, crmentity.crmid, crmentity.smownerid from contactdetails inner join crmentity on crmentity.crmid = contactdetails.contactid where crmentity.deleted=0 and contactdetails.campaignid = '.$id;
-
+ $query = 'SELECT contactdetails.*, crmentity.crmid, users.user_name, groups.groupname, crmentity.smownerid from contactdetails inner join crmentity on crmentity.crmid = contactdetails.contactid left join users on crmentity.smownerid = users.id left join contactgrouprelation on contactdetails.contactid=contactgrouprelation.contactid left join groups on groups.groupname=contactgrouprelation.groupname where crmentity.deleted=0 and contactdetails.campaignid = '.$id;
+
return GetRelatedList('Campaigns','Contacts',$focus,$query,$button,$returnset);
}
function get_leads($id)
@@ -79,8 +79,8 @@
$button = '';
$returnset = '&return_module=Campaigns&return_action=DetailView&return_id='.$id;
- $query = 'SELECT leaddetails.*, crmentity.crmid, crmentity.smownerid from leaddetails inner join crmentity on crmentity.crmid = leaddetails.leadid where crmentity.deleted=0 and leaddetails.campaignid = '.$id;
-
+ $query = 'SELECT leaddetails.*, crmentity.crmid, users.user_name, groups.groupname, crmentity.smownerid from leaddetails inner join crmentity on crmentity.crmid = leaddetails.leadid left join users on crmentity.smownerid = users.id left join leadgrouprelation on leaddetails.leadid=leadgrouprelation.leadid left join groups on groups.groupname=leadgrouprelation.groupname where crmentity.deleted=0 and leaddetails.campaignid = '.$id;
+
return GetRelatedList('Campaigns','Leads',$focus,$query,$button,$returnset);
}
More information about the vtigercrm-commits
mailing list