-
Notifications
You must be signed in to change notification settings - Fork 195
Questionnaire: All branching shown in View your response #616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: MOODLE_404_STABLE
Are you sure you want to change the base?
Questionnaire: All branching shown in View your response #616
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comment
@mchurchward I have just pushed a new commit to fix your comment. Please review again. Thanks. |
This change does not seem to be working correctly.
If I answer "No" to question 1, my individual response shows the first dependency (colour) faded out with no answer, but not the second dependency answer which is the one I answered. See image: |
@mchurchward, I have just tested that case, but it works as expected. See the video: |
Your video shows the "Yes" reply. The problem I posted is when "No" is answered. Please review my image above again. I answered "no". I should see the "Will you buy a car this year", not "What colour is your car". |
@mchurchward yes, i also tested with no option. Please refer to the below attachment: |
I still see the issue when I do the same. Here is the question setup: Here are my answers: And here is what I see on the response screen: Note that this a new questionnaire with only one respondent. If I add a second response where I answer "yes", the response display looks fine for the new response, but the first one still is wrong. Something to check is that you are testing with exactly the same code as this PR, and that you don't have other changes that are not in MOODLE_404_STABLE or your PR? |
I added a Behat test to test the specific case above. |
Hi @mchurchward Thanks for the feedback. I've reviewed my commit and investigated the issue. It turns out the problem was related to the logic that checks eligibility for the question. I've fixed it and pushed a new commit. Could you please review it again? |
Context: Enable the "Allow branching questions" setting. Create a radio question with multiple options, and add corresponding dependency questions for each option. The issue occurs when users answer the question and view their responses.
Actual Results: Users can see all of the dependency questions, which can be overwhelming.
Expected Results: Users should only see the dependency question that corresponds to the option they selected.
Impacted Areas: This fix only impacts the "View your response(s) > Individual responses" page.