This commit is contained in:
2020-01-20 18:31:52 +00:00
parent b20d81e5cf
commit d815b38ebd
11 changed files with 23 additions and 23 deletions

View File

@@ -96,7 +96,7 @@ namespace AyaNova.Biz
}
//If it doesn't exist, vet the form key name is ok by checking with this list
if (!AyaObjectFields.AvailableObjectKeys.Contains(formKey))
if (!AyaObjectFieldDefinitions.AvailableObjectKeys.Contains(formKey))
{
//Nope, whatever it is, it's not valid
return null;
@@ -165,7 +165,7 @@ namespace AyaNova.Biz
AddError(ApiErrorCode.VALIDATION_REQUIRED, "FormKey");
else
{
if (!AyaObjectFields.IsValidObjectKey(inObj.FormKey))
if (!AyaObjectFieldDefinitions.IsValidObjectKey(inObj.FormKey))
{
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "FormKey");
}
@@ -192,7 +192,7 @@ namespace AyaNova.Biz
if ((!PropertyHasErrors("FormKey") && !string.IsNullOrWhiteSpace(inObj.Template)))
{
var ValidCustomFieldTypes = CustomFieldType.ValidCustomFieldTypes;
var ValidFormFields = AyaObjectFields.ObjectFieldsList(inObj.FormKey);
var ValidFormFields = AyaObjectFieldDefinitions.ObjectFieldsList(inObj.FormKey);
try
{
//Parse the json, expecting something like this: