mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Fixes bug launching jt where first survey question is optional and empty
This commit is contained in:
parent
e517f81b8f
commit
c0c666cc87
@ -49,11 +49,11 @@ export default
|
||||
|
||||
if (scope.promptData.launchConf.survey_enabled){
|
||||
scope.promptData.surveyQuestions.forEach(surveyQuestion => {
|
||||
if (!scope.promptData.extraVars) {
|
||||
scope.promptData.extraVars = {};
|
||||
}
|
||||
// grab all survey questions that have answers
|
||||
if (surveyQuestion.required || (surveyQuestion.required === false && surveyQuestion.model.toString()!=="")) {
|
||||
if (!scope.promptData.extraVars) {
|
||||
scope.promptData.extraVars = {};
|
||||
}
|
||||
scope.promptData.extraVars[surveyQuestion.variable] = surveyQuestion.model;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user