From: hickert Date: Thu, 21 Sep 2006 10:30:04 +0000 (+0000) Subject: Fixed script removement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce39b60e6634c59fd9858a937b0c7aa0be3314e0;p=gosa.git Fixed script removement git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4755 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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]);