From: hickert Date: Mon, 9 May 2011 07:30:03 +0000 (+0000) Subject: Fixed selection of releases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c2f50585696c6df01aa7c92e8ea24dd807d2b549;p=gosa.git Fixed selection of releases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20789 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc index 2c09fc177..8ff537efe 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc @@ -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();