From cd9b77502953caf3a2e4fb06f1d8794d334242c2 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Feb 2006 13:36:19 +0000 Subject: [PATCH] Fixed filter overwrite git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2775 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_systemManagement.inc | 12 +++++++----- plugins/admin/systems/headpage.tpl | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 66ff41e5c..7fbd4b428 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -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"; diff --git a/plugins/admin/systems/headpage.tpl b/plugins/admin/systems/headpage.tpl index 9db03c327..3641f1087 100644 --- a/plugins/admin/systems/headpage.tpl +++ b/plugins/admin/systems/headpage.tpl @@ -68,5 +68,5 @@ - + -- 2.30.2