From: hickert Date: Tue, 28 Feb 2006 13:36:19 +0000 (+0000) Subject: Fixed filter overwrite X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd9b77502953caf3a2e4fb06f1d8794d334242c2;p=gosa.git Fixed filter overwrite git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2775 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 @@ - +