Code

Updated object movement.
[gosa.git] / plugins / admin / departments / class_departmentGeneric.inc
index 3efe8f8fdb27b8400285e58450d0c8d2f8cb3680..da4c101b7beeccfc97adc50480725de7ff16889c 100644 (file)
@@ -541,6 +541,8 @@ class department extends plugin
 
                                echo "<b>"._("Object").":</b> ".@LDAP::fix($src)."<br>";
 
+        $this->update_acls($object, $dst,TRUE);
+
                                if (!$this->copy($src, $dst)){
                                        echo "<font color='#FF0000'><br>".sprintf(_("FAILED to copy %s, aborting operation"),@LDAP::fix($src))."</font>";
                                        return (FALSE);
@@ -552,6 +554,7 @@ class department extends plugin
                        /* Remove src_dn */
                        $ldap->cd($src_dn);
                        $ldap->recursive_remove();
+      $this->dn = $this->rec_dst;
                        $this->rec_src = $this->rec_dst = "";
                        $this->rec_cpy =false;