[Vtigercrm-commits] [vtiger-commits] r11135 - /vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 29 14:40:30 EDT 2007
Author: richie
Date: Tue May 29 12:40:25 2007
New Revision: 11135
Log:
* Added query to get the ticket details of note
Modified:
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Tue May 29 12:40:25 2007
@@ -2068,6 +2068,8 @@
ON vtiger_senotesrel.crmid = vtiger_salesorder.salesorderid
LEFT JOIN vtiger_quotes
ON vtiger_senotesrel.crmid = vtiger_quotes.quoteid
+ LEFT JOIN vtiger_troubletickets
+ ON vtiger_senotesrel.crmid = vtiger_troubletickets.ticketid
WHERE vtiger_crmentity.deleted = 0
AND ((vtiger_senotesrel.crmid IS NULL
AND (vtiger_notes.contact_id = 0
@@ -2079,6 +2081,7 @@
OR vtiger_senotesrel.crmid IN (".getReadEntityIds('Invoice').")
OR vtiger_senotesrel.crmid IN (".getReadEntityIds('PurchaseOrder').")
OR vtiger_senotesrel.crmid IN (".getReadEntityIds('SalesOrder').")
+ OR vtiger_senotesrel.crmid IN (".getReadEntityIds('HelpDesk').")
OR vtiger_notes.contact_id IN (".getReadEntityIds('Contacts').")) ";
break;
Case "Contacts":
@@ -2580,6 +2583,23 @@
ON vtiger_invoice.invoiceid = vtiger_invoicegrouprelation.invoiceid
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_invoicegrouprelation.groupname
+ WHERE vtiger_crmentity.deleted = 0 ".$where;
+ if($is_admin==false && $profileGlobalPermission[1] == 1 && $profileGlobalPermission[2] == 1 && $defaultOrgSharingPermission[$tab_id] == 3)
+ {
+ $sec_parameter=getListViewSecurityParameter($module);
+ $query .= $sec_parameter;
+ }
+ }
+ if($module == "HelpDesk")
+ {
+ $query = "SELECT vtiger_crmentity.crmid
+ FROM vtiger_troubletickets
+ INNER JOIN vtiger_crmentity
+ ON vtiger_crmentity.crmid = vtiger_troubletickets.ticketid
+ LEFT JOIN vtiger_ticketgrouprelation
+ ON vtiger_troubletickets.ticketid = vtiger_ticketgrouprelation.ticketid
+ LEFT JOIN vtiger_groups
+ ON vtiger_groups.groupname = vtiger_ticketgrouprelation.groupname
WHERE vtiger_crmentity.deleted = 0 ".$where;
if($is_admin==false && $profileGlobalPermission[1] == 1 && $profileGlobalPermission[2] == 1 && $defaultOrgSharingPermission[$tab_id] == 3)
{
More information about the vtigercrm-commits
mailing list