[FIX] survey: fix conditional questions navigation on survey
This commit remove unecessary array around triggered_questions_by_answer values that is used at the client side to find inactive questions. Before this fix, when looping through every elements of triggered_questions_by_answer, we got an array, instead of each question id separately. PR #48442 Task ID 2208574
This commit is contained in:
committed by
Aurélien Warnon
parent
8d09178b42
commit
af9b9d56c0
@@ -284,9 +284,9 @@ class Survey(http.Controller):
|
||||
if triggering_answer_by_question[question]
|
||||
},
|
||||
'triggered_questions_by_answer': {
|
||||
answer.id: [
|
||||
triggered_questions_by_answer[answer].ids
|
||||
] for answer in triggered_questions_by_answer.keys()},
|
||||
answer.id: triggered_questions_by_answer[answer].ids
|
||||
for answer in triggered_questions_by_answer.keys()
|
||||
},
|
||||
'selected_answers': selected_answers.ids
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user