summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad3e278)
raw | patch | inline | side by side (parent: ad3e278)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 6 Apr 2010 14:35:05 +0000 (14:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 6 Apr 2010 14:35:05 +0000 (14:35 +0000) |
-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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17487 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_sortableListing.inc | patch | blob | history |
diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc
index 3cd08a5baf9750c65c8b10dd62d5a219b18ad662..1a2c272267a8a6840d41a3a0054e5c58ee5d2fec 100644 (file)
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) {
}
}
-
+
// Update mapping according to sort parameters
$this->sortData();
}