Code

Fixed FAI Hooks.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 06:47:39 +0000 (06:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 06:47:39 +0000 (06:47 +0000)
-Apply resulted in an empty object list.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9886 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHook.inc

index c5e8c47dc0fcf1dd6b8c0c16c5fa1c7e60c8f731..c0aeae24fe43a4b8ff9d1600d6c2c0e2b6fc3fa4 100644 (file)
@@ -486,18 +486,7 @@ class faiHook extends plugin
 
     /* We do not need to save untouched objects */
     foreach($this->SubObjects as $name => $obj){
-      if($obj['status'] == "FreshLoaded"){
-        unset($this->SubObjects[$name]);
-      }
-    }
-
-    foreach($this->SubObjects as $name => $obj){
-      if($obj['status'] == "delete"){
-        $Objects[$name] = $obj; 
-      }
-    }
-    foreach($this->SubObjects as $name => $obj){
-      if($obj['status'] != "delete"){
+      if($obj['status'] != "FreshLoaded"){
         $Objects[$name] = $obj; 
       }
     }