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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 2 04:17:41 EST 2007


Author: saraj
Date: Fri Mar  2 02:17:33 2007
New Revision: 10322

Log:
fix for could not delete Potentials from Contacts RelatedList. Fixes #3150  --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 Fri Mar  2 02:17:33 2007
@@ -114,6 +114,11 @@
 		if($return_module == 'Products')//Delete Potential from Product relatedlist
 		{
 			$sql = "delete from vtiger_seproductsrel where crmid=$record and productid=$return_id";
+			$adb->query($sql);
+		}
+		if($return_module == 'Contacts')
+		{
+			$sql = "delete from vtiger_contpotentialrel where potentialid=$record and contactid=$return_id";
 			$adb->query($sql);
 		}
 		$sql ='delete from vtiger_seactivityrel where crmid = '.$record.' and activityid = '.$return_id;





More information about the vtigercrm-commits mailing list