[Vtigercrm-commits] [vtiger-commits] r9818 - /vtigercrm/branches/5.0.3/modules/Users/updateLeadDBStatus.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Nov 13 05:05:12 EST 2006
Author: richie
Date: Mon Nov 13 03:05:08 2006
New Revision: 9818
Log:
Issue in change owner in calender - fixed. Fixes #2213
Modified:
vtigercrm/branches/5.0.3/modules/Users/updateLeadDBStatus.php
Modified: vtigercrm/branches/5.0.3/modules/Users/updateLeadDBStatus.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/updateLeadDBStatus.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/updateLeadDBStatus.php Mon Nov 13 03:05:08 2006
@@ -79,7 +79,9 @@
//First we have to delete the group relationship
$delete_query = "delete from ". $deletegroup_array[$return_module] ." where " . $tableId_array[$return_module] . "='".$id."'";
$result = $adb->query($delete_query);
-
+ //Inserting changed owner information to salesmanactivityrel table
+ $insert = "insert into vtiger_salesmanactivityrel values(".$idval.",".$id.")";
+ $result = $adb->query($insert);
//Now we have to update the smownerid
$sql = "update vtiger_crmentity set modifiedby=".$current_user->id.",smownerid='" .$idval ."', modifiedtime=".$adb->formatString("vtiger_crmentity","modifiedtime",$date_var)." where crmid='" .$id."'";
$result = $adb->query($sql);
More information about the vtigercrm-commits
mailing list