fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13229]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13229]
Date: Tue, 19 May 2015 22:03:50 +0000

Revision: 13229
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13229
Author:   nelson224
Date:     2015-05-19 22:03:48 +0000 (Tue, 19 May 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uilookup.inc.php

Modified: branches/dev-syncromind/property/inc/class.uilookup.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uilookup.inc.php 2015-05-19 
17:25:39 UTC (rev 13228)
+++ branches/dev-syncromind/property/inc/class.uilookup.inc.php 2015-05-19 
22:03:48 UTC (rev 13229)
@@ -109,12 +109,25 @@
                                $order = phpgw::get_var('order');
                                $draw = phpgw::get_var('draw', 'int');
                                $columns = phpgw::get_var('columns');
+                               $order_field    = '';
 
+                               switch($columns[$order[0]['column']]['data'])
+                               {
+                                       case 'contact_id':
+                                               $order_field = 'person_id';
+                                               break;
+                                       case 'contact_name':
+                                               $order_field = 'last_name';
+                                               break;
+                                       default:
+                                               $order_field = 
$columns[$order[0]['column']]['data'];
+                               }
+                       
                                $params = array(
                                        'start' => phpgw::get_var('start', 
'int', 'REQUEST', 0),
                                        'results' => phpgw::get_var('length', 
'int', 'REQUEST', 0),
                                        'query' => $search['value'],
-                                       'order' => 
$columns[$order[0]['column']]['data'],
+                                       'order' => $order_field,
                                        'sort' => $order[0]['dir'],
                                        'dir' => $order[0]['dir'],
                                        'allrows' => phpgw::get_var('length', 
'int') == -1,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]