[Vtigercrm-commits] [vtiger-commits] r7828 - in /vtigercrm/trunk: include/RelatedListView.php modules/Accounts/Account.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jul 5 03:34:41 EDT 2006
Author: saraj
Date: Wed Jul 5 01:34:35 2006
New Revision: 7828
Log:
issue in account-tickets query fixed
Modified:
vtigercrm/trunk/include/RelatedListView.php
vtigercrm/trunk/modules/Accounts/Account.php
Modified: vtigercrm/trunk/include/RelatedListView.php
==============================================================================
--- vtigercrm/trunk/include/RelatedListView.php (original)
+++ vtigercrm/trunk/include/RelatedListView.php Wed Jul 5 01:34:35 2006
@@ -126,8 +126,8 @@
$url_qry .="&order_by=".$order_by;
//Retreiving the no of rows
- $count_query = "select count(*) count ".substr($query, strpos($query,'from'),strlen($query));
- $count_result = $adb->query(substr($count_query, strpos($count_query,'select'),strpos($count_query,'ORDER')));
+ $count_query = "select count(*) count ".substr($query, stripos($query,'from'),strlen($query));
+ $count_result = $adb->query(substr($count_query, stripos($count_query,'select'),stripos($count_query,'ORDER')));
$noofrows = $adb->query_result($count_result,0,"count");
//Setting Listview session object while sorting/pagination
Modified: vtigercrm/trunk/modules/Accounts/Account.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/Account.php (original)
+++ vtigercrm/trunk/modules/Accounts/Account.php Wed Jul 5 01:34:35 2006
@@ -525,7 +525,7 @@
$query .= ' '.$sec_parameter;
}
- $query .= " UNION ALL
+ /*$query .= " UNION ALL
SELECT vtiger_users.user_name, vtiger_users.id,
vtiger_troubletickets.title, vtiger_troubletickets.ticketid AS crmid,
vtiger_troubletickets.status, vtiger_troubletickets.priority,
@@ -545,6 +545,7 @@
LEFT JOIN vtiger_groups
ON vtiger_groups.groupname = vtiger_ticketgrouprelation.groupname
WHERE vtiger_account.accountid = ".$id;
+ */
$log->debug("Exiting get_tickets method ...");
return GetRelatedList('Accounts','HelpDesk',$focus,$query,$button,$returnset);
}
More information about the vtigercrm-commits
mailing list