This commit is contained in:
@@ -892,7 +892,11 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
|
|
||||||
//Any form customizations to validate?
|
//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)
|
if (FormCustomization != null)
|
||||||
{
|
{
|
||||||
//Yeppers, do the validation, there are two, the custom fields and the regular fields that might be set to required
|
//Yeppers, do the validation, there are two, the custom fields and the regular fields that might be set to required
|
||||||
|
|||||||
Reference in New Issue
Block a user