fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12271]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12271]
Date: Wed, 05 Nov 2014 23:20:11 +0000

Revision: 12271
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12271
Author:   nelson224
Date:     2014-11-05 23:20:11 +0000 (Wed, 05 Nov 2014)
Log Message:
-----------


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

Modified: branches/dev-syncromind/property/inc/class.uilocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uilocation.inc.php       
2014-11-05 13:24:38 UTC (rev 12270)
+++ branches/dev-syncromind/property/inc/class.uilocation.inc.php       
2014-11-05 23:20:11 UTC (rev 12271)
@@ -547,13 +547,12 @@
                                array_unshift 
($data['form']['toolbar']['item'], $filter);
                        }
                                        
-                       $location_list = 
$this->bo->read(array('type_id'=>$type_id,'lookup_tenant'=>$lookup_tenant,'lookup'=>$lookup,'allrows'=>$this->allrows));
+                       
$this->bo->read(array('type_id'=>$type_id,'lookup_tenant'=>$lookup_tenant,'lookup'=>$lookup,'allrows'=>$this->allrows));
                        $uicols = $this->bo->uicols;
        
                        $count_uicols_name = count($uicols['name']);
 
-                       $searc_levels = array();
-                       for($i=1;$i< $type_id; $i++)
+                       for($i=1; $i<$type_id; $i++)
                        {
                                $searc_levels[] = "loc{$i}";
                        }
@@ -574,18 +573,19 @@
                                        if(in_array($uicols['name'][$k], 
$searc_levels))
                                        {
                                                $params['formatter'] = 
'JqueryPortico.searchLink';
+                                       }
+                                       if($uicols['name'][$k]=='loc1')
+                                       {
+                                               $params['formatter'] = 
'JqueryPortico.searchLink';
                                                $params['sortable']     = true;
-                                               $params['sort_field'] = 
'fm_location1.loc1';
                                        }
                                        else 
if($uicols['name'][$k]=='street_name')
                                        {
                                                $params['sortable']     = true;
-                                               $params['sort_field'] = 
'street_name';
                                        }
                                        else 
if(isset($uicols['cols_return_extra'][$k]) && 
($uicols['cols_return_extra'][$k]!='T' || 
$uicols['cols_return_extra'][$k]!='CH'))
                                        {
                                                $params['sortable']     = true;
-                                               $params['sort_field'] = 
$uicols['name'][$k];
                                        }
                                        
                                        array_push 
($data['datatable']['field'], $params);




reply via email to

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