This commit is contained in:
2022-01-23 16:26:06 +00:00
parent 19210976b6
commit 80d73fc711

View File

@@ -892,7 +892,11 @@ namespace AyaNova.Biz
//Any form customizations to validate?
var FormCustomization = await ct.FormCustom.SingleOrDefaultAsync(z => z.FormKey == AyaType.User.ToString());
//contact is type if customer user
var formKey = AyaType.User.ToString();
if (proposedObj.UserType == UserType.Customer || proposedObj.UserType == UserType.HeadOffice)
formKey = "Contact";
var FormCustomization = await ct.FormCustom.SingleOrDefaultAsync(z => z.FormKey == formKey);
if (FormCustomization != null)
{
//Yeppers, do the validation, there are two, the custom fields and the regular fields that might be set to required