[Vtigercrm-commits] [vtiger-commits] r10341 - /vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 5 07:20:58 EST 2007
Author: saraj
Date: Mon Mar 5 05:20:43 2007
New Revision: 10341
Log:
fix for Deleted tickets shown under account related list. Fixes #3178 --Minnie
Modified:
vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php
Modified: vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/Accounts.php Mon Mar 5 05:20:43 2007
@@ -545,7 +545,7 @@
ON vtiger_troubletickets.ticketid = vtiger_ticketgrouprelation.ticketid
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_ticketgrouprelation.groupname
- WHERE vtiger_troubletickets.parent_id=".$id." or " ;
+ WHERE vtiger_crmentity.deleted = 0 and ( vtiger_troubletickets.parent_id=".$id." or " ;
$query .= "vtiger_troubletickets.parent_id in(SELECT vtiger_contactdetails.contactid
FROM vtiger_contactdetails
@@ -573,7 +573,7 @@
}
- $query .= ") ";
+ $query .= ") )";
/*
$query .= " UNION ALL
More information about the vtigercrm-commits
mailing list