Fixes #U4-4195 7.0.X PropertyValueEditor.GetDatabaseType FormatException on different regional settings

This commit is contained in:
Sebastiaan Janssen
2014-02-24 12:08:33 +01:00
parent 289361c02f
commit d02b230f71

View File

@@ -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
/// <returns></returns>
public DataTypeDatabaseType GetDatabaseType()
{
switch (ValueType.ToUpper())
switch (ValueType.ToUpper(CultureInfo.InvariantCulture))
{
case "INT":
case "INTEGER":