Skip to content

Commit 8510d47

Browse files
committed
fix appvelor errors
1 parent f629ab0 commit 8510d47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

OpenContent/Components/Querying/QueryBuilder.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ private QueryBuilder BuildFilter(JObject query, bool addWorkflowFilter, int user
100100
var val = item.Value.ToString();
101101
if (fieldConfig != null && fieldConfig.IndexType == "boolean")
102102
{
103-
if (bool.TryParse(val, out var bval))
103+
bool bval = false;
104+
if (bool.TryParse(val, out bval))
104105
{
105106
workFlowFilter.AddRule(new FilterRule()
106107
{
@@ -112,7 +113,8 @@ private QueryBuilder BuildFilter(JObject query, bool addWorkflowFilter, int user
112113
}
113114
else if (fieldConfig != null && fieldConfig.IndexType == "float")
114115
{
115-
if (float.TryParse(val, out var fval))
116+
float fval = 0;
117+
if (float.TryParse(val, out fval))
116118
{
117119
workFlowFilter.AddRule(new FilterRule()
118120
{

0 commit comments

Comments
 (0)