[Vtigercrm-commits] [vtiger-commits] r5412 - /vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 26 23:26:33 EDT 2006
Author: saraj
Date: Wed Apr 26 21:26:28 2006
New Revision: 5412
Log:
changes made to support grouprelation for campaign module
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Wed Apr 26 21:26:28 2006
@@ -490,10 +490,14 @@
{
$sql = "select ticketgrouprelation.groupname,groups.groupid from ticketgrouprelation inner join groups on groups.groupname=ticketgrouprelation.groupname where ticketgrouprelation.ticketid=".$id;
}
+ elseif($module == 'Campaigns')
+ {
+ $sql = "select campaigngrouprelation.groupname,groups.groupid from campaigngrouprelation inner join groups on groups.groupname=campaigngrouprelation.groupname where campaigngrouprelation.campaignid=".$id;
+ }
elseif($module == 'Activities' || $module == 'Emails' || $module == 'Events')
{
$sql = "select activitygrouprelation.groupname,groups.groupid from activitygrouprelation inner join groups on groups.groupname=activitygrouprelation.groupname where activitygrouprelation.activityid=".$id;
- }
+ }
$result = $adb->query($sql);
$group_info[] = $adb->query_result($result,0,"groupname");
$group_info[] = $adb->query_result($result,0,"groupid");
More information about the vtigercrm-commits
mailing list