From cb5649ff8be37e726b0ba063ae985723702adafe Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 Apr 2010 14:35:05 +0000 Subject: [PATCH] Updated list sorting. -Keep list sorted even if sorting wasn't modified git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17487 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_sortableListing.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc index 3cd08a5ba..1a2c27226 100644 --- a/gosa-core/include/class_sortableListing.inc +++ b/gosa-core/include/class_sortableListing.inc @@ -319,16 +319,14 @@ class sortableListing { public function update() { - // Do not do anything if this is not our PID, or there's even no PID available... - if(isset($_REQUEST['PID']) && $_REQUEST['PID'] != $this->id) { - return; - } // Filter GET with "act" attributes if (!$this->reorderable){ - if(isset($_GET['act'])) { + if(isset($_GET['act']) && isset($_GET['PID']) && $this->id == $_GET['PID']) { + $key= validate($_GET['act']); if (preg_match('/^SORT_([0-9]+)$/', $key, $match)) { + // Switch to new column or invert search order? $column= $match[1]; if ($this->sortColumn != $column) { @@ -339,7 +337,7 @@ class sortableListing { } } - + // Update mapping according to sort parameters $this->sortData(); } -- 2.30.2