Permalink
Browse files

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

…MOODLE_24_STABLE
  • Loading branch information...
2 parents 86070a3 + 7a28bba commit 2b2d3244cd96d4f3e0a90590b892f6d1a8190b87 @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 2b2d324

Please sign in to comment.