Code

Added cn to class vars, to be able to use it within post_create etc
[gosa.git] / plugins / admin / systems / class_goFonServer.inc
index e420801791c7637859c105c0c0e190139b35bd6a..4d0fca755371dbb77d4f5f08509c920509a1c754 100644 (file)
@@ -71,6 +71,7 @@ class goFonServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -88,6 +89,11 @@ class goFonServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }