Code

Fixed selection of releases
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 May 2011 07:30:03 +0000 (07:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 May 2011 07:30:03 +0000 (07:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20789 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index 2c09fc177c60db7bd24e3bb80b9aba9072846363..8ff537efebd62223fd261e3458a4b860b78d5d44 100644 (file)
@@ -32,7 +32,7 @@ class InstallRecipe extends plugin
     public $installKernelPackageList = array();
 
     // System Locale
-    public $installSystemLocale = "";
+    public $installSystemLocale = "de_DE.UTF-8";
     public $installSystemLocaleList = array();
 
     // Selected NTP Server
@@ -48,7 +48,7 @@ class InstallRecipe extends plugin
     public $installPartitionTable = "";
 
     // Keyboard-layout attribute
-    public $installKeyboardlayout = "";
+    public $installKeyboardlayout = "de";
     public $installKeyboardlayoutList = array();
 
     // Mirror related attribute
@@ -372,6 +372,11 @@ class InstallRecipe extends plugin
             $this->installNTPServerList->setListData($this->installNTPServer);
             $this->installBootstrapMethod = $this->installationTemplates[$this->installTemplate]['method'];
 
+            // The selected release is no longer available for the current template
+            if(!in_array($this->installRelease, $this->templateToRelease[$this->installTemplate])){
+                $this->installRelease = key($this->templateToRelease[$this->installTemplate]);
+            }
+
             // Reload list of kernel packages and mirrors
             if($oldRelease != $this->installRelease){
                 $this->reloadInstallationKernelPackages();