From 915a1beca7cfaa4cb37ee4f22e43632866c56d51 Mon Sep 17 00:00:00 2001
From: Steffen Gebert <steffen.gebert@typo3.org>
Date: Thu, 2 Jun 2011 15:52:50 +0200
Subject: [PATCH] [BUGFIX][INSTALL] Selecting existing database should check
 radio button

Due to a JavaScript error the corresponding radio button in Step 2 of
the 1-2-3 wizard is not automatically checked, when the dropdown menu
to select an existing database changes.

Change-Id: Idc7c65a268bd7dd67004a88a4c49457f11c022de
Resolves: #11765
Reviewed-on: http://review.typo3.org/2505
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
---
 .../install/Resources/Private/Templates/StepOutput.html       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/install/Resources/Private/Templates/StepOutput.html b/typo3/sysext/install/Resources/Private/Templates/StepOutput.html
index 31b6fa99b689..3c339de1655f 100644
--- a/typo3/sysext/install/Resources/Private/Templates/StepOutput.html
+++ b/typo3/sysext/install/Resources/Private/Templates/StepOutput.html
@@ -87,7 +87,7 @@
 						<div>
 							<label for="t3-install-123-newdatabase">###LLOPTION1###</label>
 							<p>###LLREMARK1###</p>
-							<input id="t3-install-123-newdatabase" class="t3-install-form-input-text" type="text" name="TYPO3_INSTALL[localconf.php][NEW_DATABASE_NAME]" onchange="this.form.db_select_option[0].checked=true" />
+							<input id="t3-install-123-newdatabase" class="t3-install-form-input-text" type="text" name="TYPO3_INSTALL[localconf.php][NEW_DATABASE_NAME]" onfocus="document.getElementById('t3-install-form-db-select-new').checked=true" />
 						</div>
 					</li>
 					<li>
@@ -95,7 +95,7 @@
 						<div>
 							<label for="t3-install-123-database">###LLOPTION2###</label>
 							<p>###LLREMARK2###</p>
-							<select id="t3-install-123-database" name="TYPO3_INSTALL[localconf.php][typo_db]" onchange="this.form.db_select_option[1].checked=true">
+							<select id="t3-install-123-database" name="TYPO3_INSTALL[localconf.php][typo_db]" onfocus="document.getElementById('t3-install-form-db-select-existing').checked=true">
 								<option value="">Select database</option>
 								<!-- ###DATABASEOPTIONS### begin -->
 								<option value="###DATABASEVALUE###" ###DATABASESELECTED###>###DATABASENAME###</option>
-- 
GitLab