This commit is contained in:
2019-01-16 19:14:50 +00:00
parent c9bc5a6227
commit d582c67c62
6 changed files with 104 additions and 45 deletions

View File

@@ -32,7 +32,7 @@ namespace AyaNova.Biz
if (ThisFormCustomFieldsList.Contains(fldKey) && fldRequired == true)
{
//Ok, this field is required but custom fields are all empty so add this error
biz.AddError(ValidationErrorType.RequiredPropertyEmpty, fldKey);
biz.AddError(ValidationErrorType.CustomRequiredPropertyEmpty, fldKey);
}
}
@@ -61,7 +61,7 @@ namespace AyaNova.Biz
var fldRequired = jo["required"].Value<bool>();
if (fldRequired && string.IsNullOrWhiteSpace(CurrentValue))
{
biz.AddError(ValidationErrorType.RequiredPropertyEmpty, iFldKey);
biz.AddError(ValidationErrorType.CustomRequiredPropertyEmpty, iFldKey);
}
break;
}