[Vtigercrm-commits] [vtiger-commits] r10613 - in /vtigercrm/branches/5.0.3: include/RelatedListView.php modules/HelpDesk/ListView.php modules/Quotes/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 10 05:43:40 EDT 2007
Author: richie
Date: Tue Apr 10 03:43:30 2007
New Revision: 10613
Log:
* Fixed the sorting - assigned to, Fixed #3411
Modified:
vtigercrm/branches/5.0.3/include/RelatedListView.php
vtigercrm/branches/5.0.3/modules/HelpDesk/ListView.php
vtigercrm/branches/5.0.3/modules/Quotes/ListView.php
Modified: vtigercrm/branches/5.0.3/include/RelatedListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/RelatedListView.php (original)
+++ vtigercrm/branches/5.0.3/include/RelatedListView.php Tue Apr 10 03:43:30 2007
@@ -139,7 +139,7 @@
$query_order_by = $order_by;
if($order_by == 'smownerid')
{
- $query_order_by = 'user_name';
+ $query_order_by = "case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end ";
}
$query .= ' ORDER BY '.$query_order_by.' '.$sorder;
$url_qry .="&order_by=".$order_by;
Modified: vtigercrm/branches/5.0.3/modules/HelpDesk/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/HelpDesk/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/HelpDesk/ListView.php Tue Apr 10 03:43:30 2007
@@ -135,7 +135,7 @@
{
if( $adb->dbType == "pgsql")
$list_query .= ' GROUP BY vtiger_users.user_name';
- $list_query .= ' ORDER BY vtiger_users.user_name '.$sorder;
+ $list_query .= " ORDER BY case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end ".$sorder;
}
else
{
Modified: vtigercrm/branches/5.0.3/modules/Quotes/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Quotes/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Quotes/ListView.php Tue Apr 10 03:43:30 2007
@@ -128,7 +128,7 @@
{
if($order_by == 'smownerid')
{
- $query .= ' ORDER BY vtiger_users.user_name '.$sorder;
+ $query .= " ORDER BY case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end ".$sorder;
}
else
{
More information about the vtigercrm-commits
mailing list