Code

Updated fai management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jun 2009 09:27:12 +0000 (09:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jun 2009 09:27:12 +0000 (09:27 +0000)
-Remove objects correctly, first set removed flag, then vleanup

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13835 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index fed11fba7330dec70b072ba63daa92410d92f260..0099a68637175dc13b4b3d10156e08a9d27fd054 100644 (file)
@@ -350,8 +350,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);
           }