[Vtigercrm-commits] [vtiger-commits] r7763 - /vtigercrm/trunk/include/utils/DeleteUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 06:53:50 EDT 2006


Author: saraj
Date: Tue Jul  4 04:53:47 2006
New Revision: 7763

Log:
* Added code to delete the contact - vendor relationship when we delete contact from vendor relatedlist

Modified:
    vtigercrm/trunk/include/utils/DeleteUtils.php

Modified: vtigercrm/trunk/include/utils/DeleteUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DeleteUtils.php (original)
+++ vtigercrm/trunk/include/utils/DeleteUtils.php Tue Jul  4 04:53:47 2006
@@ -67,6 +67,11 @@
 		if($return_module == 'Products')
 		{
 			$sql = 'delete from vtiger_vendorcontactrel where contactid='.$record.' and vendorid='.$return_id;
+			$adb->query($sql);
+		}
+		if($return_module == 'Vendors')
+		{
+			$sql = "delete from vtiger_vendorcontactrel where vendorid=$return_id and contactid=$record";
 			$adb->query($sql);
 		}
 	break;





More information about the vtigercrm-commits mailing list