Code

Fixed Edit Problem with Hooks/Scripts
[gosa.git] / plugins / admin / fai / class_faiHookEntry.inc
index 58f6ec4bacad53043b213a7b0a449e5f29f8c13e..a9b67e450c97a5e5a3e9be3c75275da8e03363da 100644 (file)
@@ -34,8 +34,18 @@ class faiHookEntry extends plugin
         $this->$oname=$value;
       }
     }else{
-      $this->status = "new";
-      $this->orig_cn       = false;
+      if(count($object)){
+        $this->orig_cn= $object['cn'];
+        $this->dn=$object['dn'];
+        foreach($object as $name=>$value){
+          $oname = $name;
+          $this->$oname=$value;
+        }
+      }else{
+
+        $this->status = "new";
+        $this->orig_cn       = false;
+      }
     }
   }