From c2f50585696c6df01aa7c92e8ea24dd807d2b549 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 9 May 2011 07:30:03 +0000 Subject: [PATCH] Fixed selection of releases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20789 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/Device/class_InstallRecipe.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(); -- 2.30.2