-
Bug
-
Resolution: Fixed
-
Minor
-
3.1.6, 3.2.3
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
The feedback module lets you alternate between responses being anonymised and not anonymised. When the module is in anonymous mode, its possible for a single user to make multiple responses.
There is a bug however when switching from an anonymised feedback that already has responses, to no longer being anonymised. If a user that previously left an anon response goes to add a new response, that new response is still anonymous and replaces one of their previous anonymous responses (at random, as the query used to fetch the response has no ORDER clause).
1) Feedback is in anon format, multiple responses allowed
2) UserA leaves 2 anonymised feedbacks
3) Feedback is changed to non-anon state
4) UserA goes to leave another feedback
What happens: The 3rd feedback, rather than appearing as non-anonymous feedback, simply overwrites one of the existing two feedbacks and is still anonymous.
What should happen: The responses page shows the 3rd feedback as non-anon feedback and the existing 2 anon-feedbacks still exist in the anonymous section below. If the user attempts to change their feedback, that 3rd non-anon feedback is the one that gets updated.