If you create a matching question and provide responses for both correct and wrong answers, everything works as expected.
If you provide a response only for wrong answers, this response (that may e.g. give hints how to correct the answers) is unexpectedly shown when the question is answered correctly.
The reason is the way responses are extracted from the answers list in continue.php. Although the first two entries are (according to the comment) reserved for the right and wrong answer, they are not simply used for the responses. Instead, there is a search for the first and the second entry in $answers where $answer->response is NULL and $answer->answer ist not NULL. The matching_answer->answer is used as response. Therefore, if you enter only one response in the form, this automatically becomes the response for the "correct" case, even if entered as response for the "wrong" case.
- has a non-specific relationship to
-
MDL-25632 Incorrect navigation/jump behaviors in lesson module
-
- Closed
-