[Vtigercrm-commits] [vtiger-commits] r10434 - /vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 15 00:52:39 EDT 2007
Author: saraj
Date: Wed Mar 14 22:52:30 2007
New Revision: 10434
Log:
fix for Account-Activity relation is not handled in Account deletion. Fixes #3081 --Minnie
Modified:
vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php Wed Mar 14 22:52:30 2007
@@ -50,12 +50,6 @@
$adb->query($sql);
}
delAccRelRecords($record);
- if($return_id!='')
- {
- $sql ='delete from vtiger_seactivityrel where crmid = '.$record.' and activityid = '.$return_id;
- $adb->query($sql);
- }
-
break;
case Campaigns:
if($return_module == "Leads") {
@@ -429,6 +423,10 @@
//Deleting Trouble Tickets-Account Relation.
$tt_q = "update vtiger_troubletickets set parent_id = null where parent_id = ".$record;
$adb->query($tt_q);
+
+ //Deleting Activity-Account Relation
+ $sql="delete from vtiger_seactivityrel where crmid=".$record;
+ $adb->query($sql);
}
function delVendorRelRecords($record){
More information about the vtigercrm-commits
mailing list