Code

Do not reset the sorting direction and column when new listData is added
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Apr 2010 14:06:33 +0000 (14:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Apr 2010 14:06:33 +0000 (14:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17486 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_sortableListing.inc

index f545cb74ec3e764d2a23cc15fd854c6eb199b6e1..3cd08a5baf9750c65c8b10dd62d5a219b18ad662 100644 (file)
@@ -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;
+        }
     }
   }