Permalink
Browse files

Merge branch 'MDL-34011_m23' of git://github.com/rwijaya/moodle into …

…MOODLE_23_STABLE
  • Loading branch information...
2 parents df62668 + b845942 commit c6f24157578b17680ddd71158017a8d7139fe61f @damyon damyon committed Mar 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/lesson/pagetypes/shortanswer.php
View
3 mod/lesson/pagetypes/shortanswer.php
@@ -289,6 +289,9 @@ 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.
+ $answerpage->answerdata = $answerdata;
+ break;
} else {
$answerdata->response = get_string("thatsthewronganswer", "lesson");
if ($this->lesson->custom) {

0 comments on commit c6f2415

Please sign in to comment.