Code

Updated release selector
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 06:14:41 +0000 (06:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 06:14:41 +0000 (06:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17369 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 3b7454fbad19841918ad54de6991cb7a6a634002..6ed3e961e9bd063be5c0a461b174c8469d2e6392 100644 (file)
@@ -746,6 +746,9 @@ class faiManagement extends management
           $NewReleaseName   = $name;
         }
       }
+
+      $targetReleaseDN = "ou=".$name.",".$baseToUse;
+
       $appsrc = preg_replace("/".preg_quote(get_ou('faiBaseRDN'), '/')."/i",get_ou('applicationRDN'),$baseToUse);
       $appdst = preg_replace("/".preg_quote(get_ou('faiBaseRDN'), '/')."/i",get_ou('applicationRDN'),"ou=".$name.",".$baseToUse) ;
 
@@ -853,6 +856,10 @@ class faiManagement extends management
             "Daemon events called but classes where not accessible, DaemonEvent gosaSupportDaemon",
             FATAL_ERROR_DIALOG);
       }
+      
+      $releases = $this->getReleaseList();
+      $this->releaseSelector->setBases($releases);
+      $this->releaseSelector->setBase($targetReleaseDN);
       exit();
     }
   }