This commit is contained in:
2019-03-29 17:05:49 +00:00
parent 431c715890
commit b1d78b9fe5
9 changed files with 80 additions and 80 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.CustomRequiredPropertyEmpty, fldKey);
biz.AddError(ApiErrorCode.VALIDATION_CUSTOM_REQUIRED_EMPTY, fldKey);
}
}
@@ -67,7 +67,7 @@ namespace AyaNova.Biz
var fldRequired = jo["required"].Value<bool>();
if (fldRequired && string.IsNullOrWhiteSpace(CurrentValue))
{
biz.AddError(ValidationErrorType.CustomRequiredPropertyEmpty, iFldKey);
biz.AddError(ApiErrorCode.VALIDATION_CUSTOM_REQUIRED_EMPTY, iFldKey);
}
break;
}
@@ -77,7 +77,7 @@ namespace AyaNova.Biz
else
{
//This is a serious issue and invalidates all
biz.AddError(ValidationErrorType.RequiredPropertyMissing, iFldKey);
biz.AddError(ApiErrorCode.VALIDATION_MISSING_PROPERTY, iFldKey);
}
}