From 6c6365e231d0cc90db4afe20bbef002194050398 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 12 Dec 2005 09:59:06 +0000 Subject: [PATCH] Stupid browsers. ARghh git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2291 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servRepository.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 965746d21..52bf62b9a 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -73,6 +73,8 @@ class servrepository extends plugin /* Call parent execute */ plugin::execute(); + print_a($_POST); + /* Fill templating stuff */ $smarty= get_smarty(); $display= ""; @@ -109,7 +111,12 @@ class servrepository extends plugin $once = false; foreach($_POST as $name => $value){ + if((preg_match("/^delete_/",$name))&&(!$once)){ + + $value = preg_replace("/delete_/","",$name); + $value = preg_replace("/_.$/","",$value); + if(isset($this->repositories[$value])){ $once = true; unset($this->repositories[$value]); @@ -117,6 +124,8 @@ class servrepository extends plugin } if((preg_match("/^edit_/",$name))&&(!$once)){ + $value = preg_replace("/edit_/","",$name); + $value = preg_replace("/_.$/","",$value); if(isset($this->repositories[$value])){ $once = true; $obj = $this->repositories[$value]; -- 2.30.2