From: hickert Date: Tue, 6 Apr 2010 14:06:33 +0000 (+0000) Subject: Do not reset the sorting direction and column when new listData is added X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad3e27889f08bdb357ba36c58d950e382a3cf6d6;p=gosa.git 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 --- 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; + } } }