From ce39b60e6634c59fd9858a937b0c7aa0be3314e0 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Sep 2006 10:30:04 +0000 Subject: [PATCH] Fixed script removement git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4755 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScript.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 0dd805024..ee8c3c5c1 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -162,7 +162,9 @@ class faiScript extends plugin $once = false; $entry = preg_replace("/^deletescript_/","",$name); $entry = base64_decode(preg_replace("/_.*/","",$entry)); - if($this->SubObjects[$entry]['status'] == "edited"){ + + $status = $this->SubObjects[$entry]['status']; + if($status == "edited" || $status == "FreshLoaded"){ $this->SubObjects[$entry]['status']= "delete"; }else{ unset($this->SubObjects[$entry]); -- 2.30.2