Code

Fixed filter overwrite
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Feb 2006 13:36:19 +0000 (13:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Feb 2006 13:36:19 +0000 (13:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2775 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_systemManagement.inc
plugins/admin/systems/headpage.tpl

index 66ff41e5c5a1ed98a61c6c71655169110a6df1ad..7fbd4b428b080f15e55b3feb6488f8d1b23256c9 100644 (file)
@@ -76,14 +76,16 @@ class systems extends plugin
   
     /* Save posted filter data */
     $terminalfilter= get_global("terminalfilter");
-    foreach( array("depselect", "user", "regex") as $type){
-      if (isset($_POST[$type])){
-        $terminalfilter[$type]= $_POST[$type];
+    if(isset($_POST['SystemHeadpagePosted'])){
+      foreach( array("depselect", "user", "regex") as $type){
+        if (isset($_POST[$type])){
+          $terminalfilter[$type]= $_POST[$type];
+        }
       }
-    }
+    } 
 
     /* Check if filter checkboxes are selected */
-    if (isset($_POST['depselect'])){
+    if (isset($_POST['SystemHeadpagePosted'])){
       foreach( array("workstations", "thins", "winstations", "printers", "phones", "servers", "netdev") as $type){
         if (isset($_POST[$type])) {
           $terminalfilter[$type]= "checked";
index 9db03c327e0a64e4eaa4e1973c900010299fd749..3641f1087313b9c4c06713741f65363c88e2a7ab 100644 (file)
@@ -68,5 +68,5 @@
   </td>
 </tr>
 </table>
-
+<input type="hidden" name="SystemHeadpagePosted" value="1"> 
 <input type="hidden" name="ignore">