Permalink
Browse files

Reviewing an attempt now works fine with NUMERICAL and SHORTANSWERS

containing the "," character. Bug #561 closed.
  • Loading branch information...
1 parent 35d01c7 commit 3960a44b623163453d1b2850f5c7d02ceebf2580 stronk7 committed Jul 21, 2003
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/quiz/lib.php
View
@@ -332,6 +332,8 @@ function quiz_get_attempt_responses($attempt, $quiz) {
$responses[$key]->random = $response->answer;
$responses[$key]->answer = explode(",",$responses[$response->answer]->answer);
$responses[$response->answer]->delete = true;
+ } else if ($response->qtype == NUMERICAL or $response->qtype == SHORTANSWER) {
+ $responses[$key]->answer = array($response->answer);
} else {
$responses[$key]->answer = explode(",",$response->answer);
}

0 comments on commit 3960a44

Please sign in to comment.