Skip to content

Commit 2838683

Browse files
committed
Fix number filters
1 parent 7833b67 commit 2838683

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("3.1.1")]
19-
[assembly: AssemblyFileVersion("3.1.1")]
18+
[assembly: AssemblyVersion("3.1.3")]
19+
[assembly: AssemblyFileVersion("3.1.3")]
2020
//[assembly: AssemblyInformationalVersion("2.5-filters")]

Griddly.Mvc/InternalExtensions.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,17 @@ internal static string GetFormattedValue(object value, FilterDataType dataType)
163163
switch (dataType)
164164
{
165165
case FilterDataType.Integer:
166-
format = "n0";
166+
format = "d";
167+
168+
if (value != null)
169+
{
170+
try
171+
{
172+
value = Convert.ToInt64(value);
173+
}
174+
catch
175+
{ }
176+
}
167177

168178
break;
169179
case FilterDataType.Decimal:

0 commit comments

Comments
 (0)