fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12546]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12546]
Date: Tue, 06 Jan 2015 23:30:57 +0000

Revision: 12546
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12546
Author:   nelson224
Date:     2015-01-06 23:30:57 +0000 (Tue, 06 Jan 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-01-06 
23:29:53 UTC (rev 12545)
+++ branches/dev-syncromind/property/inc/class.uilookup.inc.php 2015-01-06 
23:30:57 UTC (rev 12546)
@@ -2211,12 +2211,26 @@
                                $order = phpgw::get_var('order');
                                $draw = phpgw::get_var('draw', 'int');
                                $columns = phpgw::get_var('columns');
-
+                               
+                               switch ($columns[$order[0]['column']]['data'])
+                               {
+                                       case 'id':
+                                               $ordering = 'account_id';
+                                               break;
+                                       case 'first_name':
+                                               $ordering = 'account_firstname';
+                                               break;
+                                       case 'last_name':
+                                               $ordering = 'account_lastname';
+                                               break;
+                                       default:
+                                               $ordering =  "";
+                               }
                                $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' => $ordering,
                                        'sort' => $order[0]['dir'],
                                        'dir' => $order[0]['dir'],
                                        'cat_id' => phpgw::get_var('cat_id', 
'int', 'REQUEST', 0),
@@ -2251,7 +2265,7 @@
                        $action .= 
'window.parent.document.getElementById("'.$user_id.'").value = "";'."\r";
                        $action .= 
'window.parent.document.getElementById("'.$user_name.'").value = "";'."\r";
                        $action .= 
'window.parent.document.getElementById("'.$user_id.'").value = 
aData["id"];'."\r";
-                       $action .= 
'window.parent.document.getElementById("'.$user_name.'").value = 
aData["first_name"];'."\r";
+                       $action .= 
'window.parent.document.getElementById("'.$user_name.'").value = 
aData["first_name"] + " " + aData["last_name"];'."\r";
                        $action .= 
'window.parent.JqueryPortico.onPopupClose("close");'."\r";
                        
                        $data = array(
@@ -2292,8 +2306,8 @@
                                $params = array(
                                                                'key' => 
$uicols['name'][$k],
                                                                'label' => 
$uicols['descr'][$k],
-                                                               'sortable' => 
false,
-                                                               'hidden' => 
false
+                                                               'sortable' => 
true,
+                                                               'hidden' => 
($uicols['input_type'][$k] == 'hidden') ? true : false
                                                        );
                                
                                array_push ($data['datatable']['field'], 
$params);
@@ -2306,7 +2320,6 @@
                        
                        self::render_template_xsl('datatable_jquery', $data);
                }
-               
 
                function project_group()
                {




reply via email to

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