-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] survey: prevent soft lock with conditional questions
If multiple questions are conditionally displayed if the user selects an answer in another multi-choice question, that answer was added multiple times in the list used to filter mandatory questions that have to be answered when displayed. This is an issue because the answer was only removed once if the user changes his choice resulting in a state where a mandatory question that is hidden stays mandatory even though it is not displayed to the user. How to reproduce: - create a new survey with: - Question1: - multi-choice with one answer - 2 answers (A, B) - Question2: - single line text box - mandatory answer - conditional display depending on answer B of Question1 - Question3: - single line text box - conditional display depending on answer B of Question1 - start the survey - click on answer B then click on answer A Current behavior: - user is not able to submit the survey with answer A selected Expected behavior: - user should be able to submit the survey task-3630079 closes odoo#145392 Signed-off-by: Florian Charlier (flch) <[email protected]> Co-authored-by: Salvo Rapisarda <[email protected]> Co-authored-by: Damien Abeloos <[email protected]>
- Loading branch information
1 parent
5502bec
commit 34b6a7a
Showing
3 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters