Skip to content

Commit 69bb4fa

Browse files
committed
Fixes System.FormatException: is not a valid value for Boolean
1 parent ed775f2 commit 69bb4fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Libraries/SmartStore.Services/Search/Modelling/CatalogSearchQueryFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ protected bool GetValueFor<T>(string key, out T value)
630630
{
631631
var strValue = _httpContext.Request?.Unvalidated.Form?[key] ?? _httpContext.Request?.Unvalidated.QueryString?[key];
632632

633-
if (strValue != null)
633+
if (strValue.HasValue())
634634
{
635635
value = strValue.Convert<T>();
636636
return true;

0 commit comments

Comments
 (0)