This commit is contained in:
2023-01-13 22:06:41 +00:00
parent 650ae96987
commit e47fa443f7
10 changed files with 228 additions and 196 deletions

View File

@@ -202,20 +202,10 @@ namespace Sockeye.Biz
private async Task ValidateAsync(GZCase proposedObj, GZCase currentObj)
{
bool isNew = currentObj == null;
await Task.CompletedTask;
// bool isNew = currentObj == null;
//Any form customizations to validate?
var FormCustomization = await ct.FormCustom.AsNoTracking().SingleOrDefaultAsync(z => z.FormKey == SockType.GZCase.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);
}
}