Skip to content

Commit

Permalink
Fix number filters
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Feb 10, 2019
1 parent 7833b67 commit 2838683
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.1.1")]
[assembly: AssemblyFileVersion("3.1.1")]
[assembly: AssemblyVersion("3.1.3")]
[assembly: AssemblyFileVersion("3.1.3")]
//[assembly: AssemblyInformationalVersion("2.5-filters")]
12 changes: 11 additions & 1 deletion Griddly.Mvc/InternalExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,17 @@ internal static string GetFormattedValue(object value, FilterDataType dataType)
switch (dataType)
{
case FilterDataType.Integer:
format = "n0";
format = "d";

if (value != null)
{
try
{
value = Convert.ToInt64(value);
}
catch
{ }
}

break;
case FilterDataType.Decimal:
Expand Down

0 comments on commit 2838683

Please sign in to comment.