diff options
| author | David Beguin <dbe@odoo.com> | 2020-04-10 09:07:05 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-07-28 08:03:32 +0000 |
| commit | e4e049ef22e1b0fc52e9cd05dd47367fe668eb94 (patch) | |
| tree | dc12929574970a1d2fa84f6a8fc476b4fdd81022 /addons/survey/static/src/js | |
| parent | cbc80857610779d563284a68db8426f8a5e40953 (diff) | |
[FIX] survey: fix is_last_page_or_question
Before this commit, is_last_page_or_question was determined only in function
of next active questions : If there are no active question after the current
one, current question is the last one.
But, in conditional questions context, if the current question is conditionning
the display of latter questions, when we display the current question, we
cannot already know if we are on the last question, as user did not answered
yet.
After this commit, the current question is the last one only if
- there are no active questions that follows
- AND the current question is not conditionning the display of other questions
For page_per_section, we check the same rule for all section's questions.
Task ID: 2232973
X-original-commit: 12d962e579d2480fbf821fb381adebf47668dbcc
Diffstat (limited to 'addons/survey/static/src/js')
0 files changed, 0 insertions, 0 deletions
