Code

Updated FAI group release handling.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Feb 2008 10:22:07 +0000 (10:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Feb 2008 10:22:07 +0000 (10:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8852 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index ea09ac05c863e7aff708610b081377dc9a2f1ecc..812c4a26fb2ccb5b1c02b0e34ef68ce86c19ce0a 100644 (file)
@@ -696,15 +696,17 @@ class FAI
   }
 
 
-  static function copy_FAI_group_releases($source_release , $destination_name, $type )
+  static function copy_FAI_group_releases($source_release , $destination_name, $type ="" )
   {
     global $config;
     $start = microtime(TRUE);
+    $source_release = trim($source_release,"/");
 
     echo "<h2>".sprintf(_("Creating group application release for %s"),$destination_name)."</h2>";
 
     $sub_releases = array();
     $source_dn = "";
+    
     $tmp = split("\/",$source_release);
     foreach($tmp as $part){
       if(empty($part)){
@@ -825,7 +827,7 @@ class FAI
         $to_copy[$attrs['dn']] = $destination;
       }
     }
-    
+   
     /* At least create the menu objects object */
     $plug = new plugin($config);
     foreach($to_copy as $source => $destination){