From 7104629ffdb543c1cce8dcdebc8eef4c59785bfb Mon Sep 17 00:00:00 2001
From: perploug
Date: Fri, 7 Mar 2014 10:17:46 +0100
Subject: [PATCH] Fixes installer database dropdown default value
---
.../src/installer/steps/database.controller.js | 10 ++++++++++
.../src/installer/steps/database.html | 15 ++-------------
2 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js b/src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js
index 81d35145e2..b82f99e4e2 100644
--- a/src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js
@@ -1,6 +1,16 @@
angular.module("umbraco.install").controller("Umbraco.Installer.DataBaseController", function($scope, $http, installerService){
$scope.checking = false;
+ $scope.dbs = [
+ {name: 'Embedded database SQL MEH', id: 0},
+ {name: 'Microsft SQL Server', id: 1},
+ {name: 'MySQL', id: 2},
+ {name: 'Custom connection-string', id: -1}];
+
+ if(installerService.status.current.model.dbType === undefined){
+ installerService.status.current.model.dbType = 0;
+ }
+
$scope.validateAndForward = function(){
if(!$scope.checking && this.myForm.$valid){
$scope.checking = true;
diff --git a/src/Umbraco.Web.UI.Client/src/installer/steps/database.html b/src/Umbraco.Web.UI.Client/src/installer/steps/database.html
index 4f123d96f8..99ff915e4e 100644
--- a/src/Umbraco.Web.UI.Client/src/installer/steps/database.html
+++ b/src/Umbraco.Web.UI.Client/src/installer/steps/database.html
@@ -6,27 +6,16 @@