From d02b230f7139fec70b4c6fa783cf9f6fe0255083 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 24 Feb 2014 12:08:33 +0100 Subject: [PATCH] Fixes #U4-4195 7.0.X PropertyValueEditor.GetDatabaseType FormatException on different regional settings --- src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs b/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs index 48ede3d2b8..306ca4dbb0 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Xml.Linq; using Newtonsoft.Json; @@ -127,7 +128,7 @@ namespace Umbraco.Core.PropertyEditors /// public DataTypeDatabaseType GetDatabaseType() { - switch (ValueType.ToUpper()) + switch (ValueType.ToUpper(CultureInfo.InvariantCulture)) { case "INT": case "INTEGER":