Code

Apply patch for Trac #2697
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Jun 2009 14:47:26 +0000 (14:47 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Jun 2009 14:47:26 +0000 (14:47 +0000)
Save changes first, before cleaning up FAI-classes wrt
to "|removed" information

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13747 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc

index 8e64e3b2a31bdbd6fbc77f280c7773efb071a406..4a20ab0e7ab7eede35916161b873cf317123e6eb 100644 (file)
@@ -326,8 +326,8 @@ class faiManagement extends plugin
           $this->dialog->set_acl_base($dn);
           $this->dialog->by_object[$type[1]]->remove_from_parent ();
           $this->dialog= FALSE;
-          $to_del = FAI::clean_up_releases($dn);
           FAI::save_release_changes_now();
+          $to_del = FAI::clean_up_releases($dn);
           foreach($to_del as $dn){
             $ldap->rmdir_recursive($dn);
           }