Merge pull request #5361 from ansible/11254-awx-fix

Fixes erroneous validation Survey validation on Prompt on Launch
This commit is contained in:
Tiago Góes
2021-10-19 15:19:16 -03:00
committed by GitHub

View File

@@ -128,9 +128,9 @@ function checkForError(launchConfig, surveyConfig, values) {
hasError = true;
}
}
if (isNumeric && (value || value === 0)) {
if (isNumeric) {
if (
(value < question.min || value > question.max) &&
(value < question.min || value > question.max || value === '') &&
question.required
) {
hasError = true;