U4-366 - AllowThousands for Integer property editor

This commit is contained in:
jeavonleopold
2012-11-08 09:28:41 +00:00
parent bd4e6eaa62
commit e9ae11ff2b

View File

@@ -1,6 +1,7 @@
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
namespace umbraco.editorControls
{
@@ -75,7 +76,7 @@ namespace umbraco.editorControls
{
int integer;
if (int.TryParse(value, out integer))
if (int.TryParse(value, NumberStyles.AllowThousands, CultureInfo.InvariantCulture, out integer))
{
base.Text = integer.ToString();
}