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

Grader Report not displaying idnumber

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Gradebook
    • Labels:
      None
    • Environment:
      Windows IIS 7, MySQL 5, PHP 5.2.14
    • Database:
      MySQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When the settings are set to view idnumber in the Grader Report, and an idnumber is set in the user field idnumber, the heading shows up, but not the number.

      I noticed in grade/report/grader/lib.php between lines 628 -> 634 there was no entry to display the idnumber.

      I added $idnumbercell->text = $user->idnumber; and now the idnumber displays.

      The complete code from line 628 is now the following

      if ($showuseridnumber) {
      $idnumbercell = new html_table_cell();
      $idnumbercell->attributes['class'] = 'header useridnumber';
      $idnumbercell->header = true;
      $idnumbercell->scope = 'row';
      $idnumbercell->text = $user->idnumber;
      $userrow->cells[] = $idnumbercell;
      }

      I have attached the lib file. If you can add it to your core branch, you can close this ticket.

        Attachments

          Activity

            People

            Assignee:
            andyjdavis Andrew Davis
            Reporter:
            patrickthibaudeau Patrick Thibaudeau
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10