This commit is contained in:
@@ -292,8 +292,8 @@ namespace AyaNova.Biz
|
||||
if (!FilterComparisonOperator.Operators.Contains(opType))
|
||||
AddError(ValidationErrorType.InvalidValue, "Filter", $"Filter array item {i}, \"op\" property value of \"{opType}\" is not a valid FilterComparisonOperator type");
|
||||
}
|
||||
if (filterItem["value"] == null)
|
||||
AddError(ValidationErrorType.RequiredPropertyEmpty, "Filter", $"Filter array item {i}, object is missing required \"value\" property ");
|
||||
if (filterItem["value"] == null || string.IsNullOrWhiteSpace(filterItem["value"].Value<string>()))
|
||||
AddError(ValidationErrorType.RequiredPropertyEmpty, "Filter", $"Filter array item {i}, object is missing or is empty the required \"value\" property ");
|
||||
//NOTE: value of nothing, null or empty is a valid value so no checking for it here
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,16 +51,7 @@ namespace AyaNova.Biz
|
||||
sb.Append(sColumn);
|
||||
sb.Append(" ");
|
||||
|
||||
//Added: 13-July-2006 prior fix on the 6th either broke due to other changes or
|
||||
//was not enough in the first place, oddly it was working then, but this is also needed
|
||||
//now to make it work:
|
||||
|
||||
//Handle bools with null values
|
||||
//this comes about from a user selecting blanks or nonblanks to filter a bool column
|
||||
if (sValue == "" && sDataType == "System.Boolean")
|
||||
{
|
||||
sValue = "False";
|
||||
}
|
||||
|
||||
|
||||
//handle null values separately
|
||||
if (sValue == "")
|
||||
|
||||
Reference in New Issue
Block a user