Code

Added download link
[gosa.git] / plugins / admin / departments / class_departmentGeneric.inc
index 5dbb830c8b0424ba3145a5ecf900b36e959a9174..62ceff1262dc8e1e1850980263c897e35acd512c 100644 (file)
@@ -197,7 +197,9 @@ class department extends plugin
        $a= $ldap->fetch();
        $ldap->cd($this->dn);
        if (count($a)){
-               $ldap->modify($this->attrs);
+               $this->cleanup();
+$ldap->modify ($this->attrs); 
+
                $this->handle_post_events('modify');
        } else {
                $ldap->add($this->attrs);