This commit is contained in:
@@ -208,20 +208,7 @@ namespace Sockeye.Biz
|
||||
|
||||
private async Task ValidateAsync(SubscriptionServer proposedObj, SubscriptionServer currentObj)
|
||||
{
|
||||
bool isNew = currentObj == null;
|
||||
|
||||
|
||||
|
||||
//Any form customizations to validate?
|
||||
var FormCustomization = await ct.FormCustom.AsNoTracking().SingleOrDefaultAsync(z => z.FormKey == SockType.SubscriptionServer.ToString());
|
||||
if (FormCustomization != null)
|
||||
{
|
||||
//Yeppers, do the validation, there are two, the custom fields and the regular fields that might be set to required
|
||||
|
||||
//validate users choices for required non custom fields
|
||||
RequiredFieldsValidator.Validate(this, FormCustomization, proposedObj);
|
||||
|
||||
}
|
||||
await Task.CompletedTask;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user