Code

Fixed script removement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Sep 2006 10:30:04 +0000 (10:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Sep 2006 10:30:04 +0000 (10:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4755 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiScript.inc

index 0dd80502490de9cce13105d80d2ac11206ff77fe..ee8c3c5c143e4157edee795e4d1be61599353aa1 100644 (file)
@@ -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]);