Merge pull request #10161 from nixocio/ui_issue_10144

Display error for boolean fields

Display error when modifying Allow Override Branch on Projects.
See: #10144

Reviewed-by: Keith Grant <keithjgrant@gmail.com>
Reviewed-by: Kersom <None>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-05-12 21:30:09 +00:00 committed by GitHub
commit 875abcd31a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,9 @@ function parseFieldErrors(obj, formValues) {
}
formErrors = formErrors.concat(parsed.formErrors);
}
if (typeof formValues[key] === 'boolean') {
formErrors = formErrors.concat(value);
}
});
return { fieldErrors, formErrors };