mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Merge pull request #2890 from mabashian/3198-survey
Fixes bug launching jt where first survey question is optional and empty Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
982ed37b06
@ -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…
Reference in New Issue
Block a user