From 7aa3443dcd03c3a558a13fc346c224e8b6621364 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Apr 2008 11:54:10 +0000 Subject: [PATCH] Fixed empty template list after apply git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10711 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiTemplate.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc index b231f1ef9..76fdcfaec 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc @@ -464,18 +464,19 @@ class faiTemplate extends plugin * After deletion, we perform add and modify */ $Objects = array(); - foreach($this->SubObjects as $name => $obj){ + $tmp = $this->SubObjects; + foreach($tmp as $name => $obj){ if($obj['status'] == "FreshLoaded"){ - unset($this->SubObjects[$name]); + unset($tmp[$name]); } } - foreach($this->SubObjects as $name => $obj){ + foreach($tmp as $name => $obj){ if($obj['status'] == "delete"){ $Objects[$name] = $obj; } } - foreach($this->SubObjects as $name => $obj){ + foreach($tmp as $name => $obj){ if($obj['status'] != "delete"){ $Objects[$name] = $obj; } @@ -519,7 +520,6 @@ class faiTemplate extends plugin FAI::prepare_to_save_FAI_object($sub_dn,$tmp); $this->handle_post_events("add"); } - } } -- 2.30.2