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

php notice displayed while viewing user report

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Under Site Administration clicked on Users -> Accounts -> Browse Users and picked a student. A users branch is added to the navigation tree. Clicked on Users -> (user name) -> Activity reports -> Grades and got the following error.

      Notice: Undefined index: 1 in /home/andrew/Desktop/repos/moodle/lib/grade/grade_item.php on line 1954
      Call Stack

      1. Time Memory Function Location
        1 0.0021 398376 {main}

        ( ) ../user.php:0
        2 0.9016 86617072 grade_report_user_profilereport( ) ../user.php:169
        3 0.9050 86676112 grade_report_user->fill_table( ) ../lib.php:502
        4 0.9050 86676112 grade_report_user->fill_table_recursive( ) ../lib.php:189
        5 0.9056 86682688 grade_report_user->fill_table_recursive( ) ../lib.php:360
        6 0.9077 86704544 grade_item->get_formatted_range( ) ../lib.php:335

      The url is course/user.php?user=5&id=1&mode=grade

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andyjdavis Andrew Davis
                Reporter:
                andyjdavis Andrew Davis
                Tester:
                Nobody
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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