Permalink
Browse files

Question numbers in the header were in the incorrect order when downl…

…oading

results as an Excel spreadsheet.
  • Loading branch information...
1 parent 4d64df8 commit c56218c8ce6171df8117686cea04123dc77e9f66 ikawhero committed Oct 28, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/report/overview/report.php
@@ -234,8 +234,8 @@ function display($quiz, $cm, $course) { /// This function just displays the
$headers[] = get_string('grade', 'quiz').'/'.$quiz->grade;
}
if($detailedmarks) {
- foreach ($questions as $question) {
- $headers[] = '#'.$question->number;
+ foreach ($questionids as $key=>$id) {
+ $headers[] = '#'.$questions[$id]->number;
}
}
$colnum = 0;

0 comments on commit c56218c

Please sign in to comment.