summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e79f473)
raw | patch | inline | side by side (parent: e79f473)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Dec 2005 09:59:06 +0000 (09:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Dec 2005 09:59:06 +0000 (09:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2291 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servRepository.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 965746d21dc78b1fdab6a85dd7cd26640a7eb60e..52bf62b9af0a7a3401f439665cf34279600f8fd9 100644 (file)
/* Call parent execute */
plugin::execute();
+ print_a($_POST);
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
$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]);
}
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];