[Vtigercrm-commits] [vtiger-commits] r9920 - /vtigercrm/branches/5.0.3/include/utils/utils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Nov 27 12:43:23 EST 2006
Author: richie
Date: Mon Nov 27 10:43:10 2006
New Revision: 9920
Log:
group handling code made generic
Modified:
vtigercrm/branches/5.0.3/include/utils/utils.php
Modified: vtigercrm/branches/5.0.3/include/utils/utils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/utils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/utils.php Mon Nov 27 10:43:10 2006
@@ -1181,6 +1181,12 @@
elseif($module == 'Campaigns')
{
$query1="select vtiger_groups.groupid from vtiger_campaigngrouprelation inner join vtiger_groups on vtiger_groups.groupname = vtiger_campaigngrouprelation.groupname where campaignid=".$record;
+ }
+ else
+ {
+ require_once("modules/$module/$module.php");
+ $modObj = new $module();
+ $query1="select vtiger_groups.groupid from vtiger_".$module."grouprelation inner join vtiger_groups on vtiger_groups.groupname = vtiger_".$module."grouprelation.groupname where ".$modObj->groupTable[1]."=".$record;
}
$result1=$adb->query($query1);
More information about the vtigercrm-commits
mailing list