Permalink
Browse files

MDL-34011 Lesson module: fixed incorrect display of student attempt f…

…or short answer question
  • Loading branch information...
damyon authored and Rossiani Wijaya committed Mar 12, 2013
1 parent 5c8860f commit a8a71bbad308d3f6cdcde5a998cbe2a14c4b8301
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/lesson/pagetypes/shortanswer.php
@@ -289,6 +289,8 @@ public function report_answers($answerpage, $answerdata, $useranswer, $pagestats
} else {
$answerdata->score = get_string("didnotreceivecredit", "lesson");
}
+ // We have found the correct answer, do not process any more answers.
+ break;
} else {
$answerdata->response = get_string("thatsthewronganswer", "lesson");
if ($this->lesson->custom) {

0 comments on commit a8a71bb

Please sign in to comment.