Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21451

extra table cell in "overall average" row of grader report

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 1.9.8
    • 1.9.7
    • Gradebook
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Steps to reproduce:

      • Go to the Grader Report for any course.
        (this happens regardless of whether or not "grade_report_fixedstudents" is turned on)

      Expected results:

      • The averages should line up correctly with the corresponding students
        (see graderreport_expected.jpg attached)

      Actual results:

      • An extra table cell in before of the averages but after the "Overall averages" heading
      • This element is being inserted: <th class="header userreport"></th>
        (see graderreport_actual.jpg attached)

      I've managed to track this down to around line 1176 of "/grade/report/grader/lib.php" which looks like this:

      if (has_capability('gradereport/'.$CFG->grade_profilereport.':view', $this->context)) {
      $avghtml .= '<th class="header userreport"></th>';
      }

      I've confirmed that this is code that's causing the problem, because when I comment it out, the extra table cell disappears.

      I've confirmed this on three different sites using the following Moodle versions:
      Moodle 1.9.7+ (Build: 20091231)
      Moodle 1.9.7+ (Build: 20100106)
      Moodle 1.9.7+ (Build: 20100121)

            andyjdavis Andrew Davis
            jnrbsn Jonathan Robson
            Nobody Nobody
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.