From 12c746c4fa531b40c50b726c84fc814eb9dde630 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 22 Nov 2019 00:03:11 +0000 Subject: [PATCH] --- server/AyaNova/biz/RequiredFieldsValidator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/AyaNova/biz/RequiredFieldsValidator.cs b/server/AyaNova/biz/RequiredFieldsValidator.cs index 0c6a7bda..1d8636eb 100644 --- a/server/AyaNova/biz/RequiredFieldsValidator.cs +++ b/server/AyaNova/biz/RequiredFieldsValidator.cs @@ -40,7 +40,8 @@ namespace AyaNova.Biz object propertyValue = proposedObject.GetType().GetProperty(RequiredPropertyName).GetValue(proposedObject, null); if (propertyValue == null || string.IsNullOrWhiteSpace(propertyValue.ToString())) - biz.AddError(ApiErrorCode.VALIDATION_REQUIRED, FldLtKey); + //biz.AddError(ApiErrorCode.VALIDATION_REQUIRED, FldLtKey);//was returning the ltkey in the error but that's not a match to the client end object so instead... + biz.AddError(ApiErrorCode.VALIDATION_REQUIRED, RequiredPropertyName); } }