diff --git a/Build/CommonAssemblyInfo.cs b/Build/CommonAssemblyInfo.cs index 3917f2a..ef0f6f9 100644 --- a/Build/CommonAssemblyInfo.cs +++ b/Build/CommonAssemblyInfo.cs @@ -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.2.7")] -[assembly: AssemblyFileVersion("3.2.7")] +[assembly: AssemblyVersion("3.2.8")] +[assembly: AssemblyFileVersion("3.2.8")] //[assembly: AssemblyInformationalVersion("2.5-filters")] diff --git a/Griddly.Mvc/GriddlyParameterAttribute.cs b/Griddly.Mvc/GriddlyParameterAttribute.cs index 2deb6a7..8a9f86f 100644 --- a/Griddly.Mvc/GriddlyParameterAttribute.cs +++ b/Griddly.Mvc/GriddlyParameterAttribute.cs @@ -1,5 +1,6 @@ using Newtonsoft.Json; using System; +using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; @@ -34,7 +35,7 @@ public override void OnActionExecuting(ActionExecutingContext filterContext) foreach (var param in filterContext.ActionParameters.ToList()) { - if (param.Value != null) + if (param.Value != null && (param.Value.GetType().IsValueType || typeof(IEnumerable).IsAssignableFrom(param.Value.GetType()))) { bool isParamSet = context.CookieData?.Values?.ContainsKey(param.Key) == true || parentKeys.Contains(param.Key) || filterContext.RouteData.Values.ContainsKey(param.Key);