[Vtigercrm-commits] [vtiger-commits] r5415 - /vtigercrm/trunk/include/utils/ListViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 26 23:57:05 EDT 2006


Author: saraj
Date: Wed Apr 26 21:57:02 2006
New Revision: 5415

Log:
changes made to support grouprelation for campaign module

Modified:
    vtigercrm/trunk/include/utils/ListViewUtils.php

Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Wed Apr 26 21:57:02 2006
@@ -1496,7 +1496,7 @@
 	{
 		//Query modified to sort by assigned to
 		//query modified -Code contribute by Geoff(http://forums.vtiger.com/viewtopic.php?t=3376)
-		$query = "select crmentity.*,campaign.* from campaign inner join crmentity on crmentity.crmid = campaign.campaignid left join users on users.id=crmentity.smownerid where crmentity.deleted=0".$where;
+		$query = "select crmentity.*,campaign.* from campaign inner join crmentity on crmentity.crmid = campaign.campaignid left join campaigngrouprelation on campaign.campaignid=campaigngrouprelation.campaignid left join groups on groups.groupname=campaigngrouprelation.groupname left join users on users.id=crmentity.smownerid where crmentity.deleted=0".$where;
 		if($is_admin==false && $profileGlobalPermission[1] == 1 && $profileGlobalPermission[2] == 1 && $defaultOrgSharingPermission[$tab_id] == 3)
 		{
 			$sec_parameter=getListViewSecurityParameter($module);





More information about the vtigercrm-commits mailing list