[Vtigercrm-commits] [vtiger-commits] r10626 - in /vtigercrm/branches/5.0.3: data/CRMEntity.php include/utils/UserInfoUtil.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 11 02:12:05 EDT 2007


Author: saraj
Date: Wed Apr 11 00:11:57 2007
New Revision: 10626

Log:
fix for Home Page My Group Allocation displays user assigned records also. Fixes #3429 --minnie

Modified:
    vtigercrm/branches/5.0.3/data/CRMEntity.php
    vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php

Modified: vtigercrm/branches/5.0.3/data/CRMEntity.php
==============================================================================
--- vtigercrm/branches/5.0.3/data/CRMEntity.php (original)
+++ vtigercrm/branches/5.0.3/data/CRMEntity.php Wed Apr 11 00:11:57 2007
@@ -943,10 +943,15 @@
 			  	{
 					$groupname = $_REQUEST['assigned_group_name'];
 
-
 					updateModuleGroupRelation($module,$this->id,$groupname);
 
 			  	}
+				else
+				{
+					updateModuleGroupRelation($module,$this->id,'');
+
+				}
+
 		  	}
       		}
 		else

Modified: vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php Wed Apr 11 00:11:57 2007
@@ -921,8 +921,10 @@
  	//Deleting the existing entry	 
   	$sqldelete = "delete from ".$modObj->groupTable[0]." where " .$modObj->groupTable[1] ."=".$moduleid;
   	$adb->query($sqldelete);
-  	$sql = "insert into ".$modObj->groupTable[0]." values (".$moduleid .",'" .$groupname ."')";  
-  	$adb->query($sql);
+	if($groupname != ""){	
+	  	$sql = "insert into ".$modObj->groupTable[0]." values (".$moduleid .",'" .$groupname ."')";  
+	  	$adb->query($sql);
+	}	
   	$log->debug("Exiting updateLeadGroupRelation method ...");
 
 }





More information about the vtigercrm-commits mailing list