[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11386] property: fix sorting in vendor lookup
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11386] property: fix sorting in vendor lookup |
Date: |
Wed, 23 Oct 2013 13:13:33 +0000 |
Revision: 11386
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11386
Author: sigurdne
Date: 2013-10-23 13:13:32 +0000 (Wed, 23 Oct 2013)
Log Message:
-----------
property: fix sorting in vendor lookup
Modified Paths:
--------------
trunk/property/inc/class.bolookup.inc.php
trunk/property/inc/class.uilookup.inc.php
Modified: trunk/property/inc/class.bolookup.inc.php
===================================================================
--- trunk/property/inc/class.bolookup.inc.php 2013-10-22 10:52:47 UTC (rev
11385)
+++ trunk/property/inc/class.bolookup.inc.php 2013-10-23 13:13:32 UTC (rev
11386)
@@ -273,8 +273,10 @@
$sogeneric = CreateObject('property.sogeneric');
$location_info =
$sogeneric->get_location_info('vendor');
+
+ $this->order = $this->order ? $this->order : 'org_name';
+ $this->sort = $this->sort ? $this->sort : 'ASC';
-
if (! $filter )
{
foreach ( $location_info['fields'] as $field )
Modified: trunk/property/inc/class.uilookup.inc.php
===================================================================
--- trunk/property/inc/class.uilookup.inc.php 2013-10-22 10:52:47 UTC (rev
11385)
+++ trunk/property/inc/class.uilookup.inc.php 2013-10-23 13:13:32 UTC (rev
11386)
@@ -882,7 +882,7 @@
if ( (phpgw::get_var("start")== "") &&
(phpgw::get_var("order",'string')== ""))
{
- $datatable['sorting']['order']
= 'id'; // name key Column in myColumnDef
+ $datatable['sorting']['order']
= 'org_name'; // name key Column in myColumnDef
$datatable['sorting']['sort']
= 'asc'; // ASC / DESC
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11386] property: fix sorting in vendor lookup,
Sigurd Nes <=