Code

Updated Class removal
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Mar 2010 13:25:28 +0000 (13:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Mar 2010 13:25:28 +0000 (13:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17356 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 1e07bb8484b998b413535758d190d426dd211c53..38401365450f2bbbf09015767dcbfbfc1da354ed 100644 (file)
@@ -456,6 +456,7 @@ class faiManagement extends management
           // Now save changes
           $str = management::removeEntryConfirmed($action,array($dn),$all,$type[0],$type[2],"fai",$type[1]);
           if(!empty($str)) return($str);
+          FAI::save_release_changes_now();
           $to_del = FAI::clean_up_releases($dn);
           foreach($to_del as $dn){
             $ldap->rmdir_recursive($dn);
@@ -467,9 +468,6 @@ class faiManagement extends management
         }
       }
     }
-    if(count($this->dns)){
-      FAI::save_release_changes_now();
-    }
 
     /* Normally this shouldn't be reached, send some extra
        logs to notify the administrator */