[Vtigercrm-commits] [vtiger-commits] r11054 - /vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 26 06:20:40 EDT 2007
Author: jerrydgeorge
Date: Sat May 26 04:20:33 2007
New Revision: 11054
Log:
Query added to delete the relationship between contacts and HelpDesk,SalesOrder,PurchaseOrder,Quotes while deleting Contacts
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 Sat May 26 04:20:33 2007
@@ -99,6 +99,11 @@
}
//remove the relationship of contacts with notes while deleting the contact
$adb->query("update vtiger_notes set contact_id=NULL where contact_id=".$record);
+ $adb->query("update vtiger_troubletickets set parent_id=NULL where parent_id=".$record);
+ $adb->query("update vtiger_purchaseorder set contactid=NULL where contactid=".$record);
+ $adb->query("update vtiger_salesorder set contactid=NULL where contactid=".$record);
+ $adb->query("update vtiger_quotes set contactid=NULL where contactid=".$record);
+
break;
case Potentials:
if($return_module == 'Accounts')
More information about the vtigercrm-commits
mailing list