[Vtigercrm-commits] [vtiger-commits] r11049 - /vtigercrm/branches/5.0.3/include/utils/DeleteUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 26 02:56:45 EDT 2007


Author: jerrydgeorge
Date: Sat May 26 00:56:37 2007
New Revision: 11049

Log:
Contact Relationship with notes has been deleted on deleting the Contact

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 00:56:37 2007
@@ -97,6 +97,8 @@
 			$sql_recentviewed ='delete from vtiger_tracker where user_id = '.$current_user->id.' and item_id = '.$record;
 			$adb->query($sql_recentviewed);
 		}
+		//remove the relationship of contacts with notes while deleting the contact
+		$adb->query("update vtiger_notes set contact_id=NULL where contact_id=".$record);
 	break;
 	case Potentials:
 		if($return_module == 'Accounts')





More information about the vtigercrm-commits mailing list