Skip to content

Commit

Permalink
Fix ordering problem with question number column headings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Sep 13, 2006
1 parent aedf2f0 commit 404518e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/quiz/report/overview/report.php
Expand Up @@ -202,7 +202,7 @@ function display($quiz, $cm, $course) {
$headers[] = get_string('grade', 'quiz').'/'.$quiz->grade;
}
if($detailedmarks) {
foreach ($questionids as $key=>$id) {
foreach ($questionids as $id) {
$headers[] = '#'.$questions[$id]->number;
}
}
Expand Down Expand Up @@ -230,8 +230,8 @@ function display($quiz, $cm, $course) {
$headers .= "\t".get_string('grade', 'quiz')."/".$quiz->grade;
}
if($detailedmarks) {
foreach ($questions as $question) {
$headers .= "\t#".$question->number;
foreach ($questionids as $id) {
$headers .= "\t#".$questions[$id]->number;
}
}
if ($hasfeedback) {
Expand Down

0 comments on commit 404518e

Please sign in to comment.