Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…oading

results as an Excel spreadsheet.
  • Loading branch information...
commit c56218c8ce6171df8117686cea04123dc77e9f66 1 parent 4d64df8
ikawhero authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/report/overview/report.php
View
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.