From ad3e27889f08bdb357ba36c58d950e382a3cf6d6 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 Apr 2010 14:06:33 +0000 Subject: [PATCH] Do not reset the sorting direction and column when new listData is added git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17486 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_sortableListing.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc index f545cb74e..3cd08a5ba 100644 --- a/gosa-core/include/class_sortableListing.inc +++ b/gosa-core/include/class_sortableListing.inc @@ -126,9 +126,10 @@ class sortableListing { } // Preset sort orders to 'down' - if(!count($this->sortDirection)) for ($column= 0; $column<$this->columns; $column++) { - $this->sortDirection[$column]= true; + if(!isset($this->sortDirection[$column])){ + $this->sortDirection[$column]= true; + } } } -- 2.30.2