[Vtigercrm-commits] [vtiger-commits] r6137 - /vtigercrm/trunk/include/utils/UserInfoUtil.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 17 16:45:53 EDT 2006
Author: allanbush
Date: Wed May 17 14:45:50 2006
New Revision: 6137
Log:
Fixed problem of trying to insert an empty row for the assigned to group when not assigned to a group. Refs #752.
Modified:
vtigercrm/trunk/include/utils/UserInfoUtil.php
Modified: vtigercrm/trunk/include/utils/UserInfoUtil.php
==============================================================================
--- vtigercrm/trunk/include/utils/UserInfoUtil.php (original)
+++ vtigercrm/trunk/include/utils/UserInfoUtil.php Wed May 17 14:45:50 2006
@@ -4611,8 +4611,10 @@
global $adb;
$sqldelete = "delete from campaigngrouprelation where campaignid=".$campaignid;
$adb->query($sqldelete);
- $sql = "insert into campaigngrouprelation values (".$campaignid .",'" .$groupname ."')";
- $adb->query($sql);
+ if($groupname) {
+ $sql = "insert into campaigngrouprelation values (".$campaignid .",'" .$groupname ."')";
+ $adb->query($sql);
+ }
$log->debug("Exiting updateCampaignGroupRelation method ...");
}
More information about the vtigercrm-commits
mailing list