From 6d37ffa72f8fdbbeb35430dd326f86be4ef816a3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 8 May 2017 14:20:27 +0200 Subject: [locationinfo] Fix initial selection of backend type when creating server Fixes #3130 --- modules-available/locationinfo/page.inc.php | 3 ++- .../locationinfo/templates/server-settings.html | 14 ++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'modules-available') diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index bda6549b..4ad2ab0f 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -481,7 +481,8 @@ class Page_LocationInfo extends Page echo Render::parse('server-settings', array('id' => $id, 'name' => $oldConfig['servername'], 'currentbackend' => $oldConfig['servertype'], - 'backendList' => $serverBackends)); + 'backendList' => $serverBackends, + 'defaultBlank' => $oldConfig === false)); } /** diff --git a/modules-available/locationinfo/templates/server-settings.html b/modules-available/locationinfo/templates/server-settings.html index c9b713e6..51e5bff6 100644 --- a/modules-available/locationinfo/templates/server-settings.html +++ b/modules-available/locationinfo/templates/server-settings.html @@ -25,6 +25,9 @@