From d80790d56d1589784e14cef534cc2c1a7590fd9d Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 28 Aug 2009 14:27:12 +0000 Subject: [PATCH] Made filter rely on it's own input git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14163 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 0b5f1778a..cce5f48ca 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -36,6 +36,7 @@ class filter { var $scopeMode= "auto"; var $alphabet= null; var $converter= array(); + var $pid; function filter($filename) @@ -46,6 +47,8 @@ class filter { if (!$this->load($filename)) { die("Cannot parse $filename!"); } + + $this->pid= preg_replace("/[^0-9]/", "", microtime(TRUE)); } @@ -344,7 +347,7 @@ class filter { } // Load template - return ("".$smarty->fetch(get_template_path($this->xmlData['definition']['template'], true))); + return ("".$smarty->fetch(get_template_path($this->xmlData['definition']['template'], true))); } @@ -434,7 +437,7 @@ class filter { } } - if (isset($_POST['FILTER_LOADED'])) { + if (isset($_POST['FILTER_PID']) && $_POST['FILTER_PID'] == $this->pid) { // Load post values and adapt filter, base and scope accordingly - but // only if we didn't get a _GET foreach ($this->elements as $tag => $element) { -- 2.30.2