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

grade/report/index.php ignores $CFG->grade_profilereport

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.5, 2.1.2
    • 2.0.4, 2.1.1
    • Gradebook
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      1. To to Admin -> Grades -> User profile report and change that to something else. - that it not easy because standard Moodle only comes with the User report. We have an OU user report here. Let us assume you managed to get an 'XXX user' report from somewhere.
      2. Change the capabilities so that students can access the XXX User report, and cannot access the standard User report.
      3. Log in as a student, and try to go to the grade/report/index.php?id=

      {courseid}

      URL. Verify you are sent to the 'XXX user' report.

      Note that the most recent report you looked at in each course is stored in the session, and that takes priority over the default, which complicates testing.

      Show
      1. To to Admin -> Grades -> User profile report and change that to something else. - that it not easy because standard Moodle only comes with the User report. We have an OU user report here. Let us assume you managed to get an 'XXX user' report from somewhere. 2. Change the capabilities so that students can access the XXX User report, and cannot access the standard User report. 3. Log in as a student, and try to go to the grade/report/index.php?id= {courseid} URL. Verify you are sent to the 'XXX user' report. Note that the most recent report you looked at in each course is stored in the session, and that takes priority over the default, which complicates testing.

      The default grade report for users is set by $CFG->grade_profilereport. grade/report/index.php is a script that redirects users to the most appropriate gradebook report for them. It currently hard-codes 'users' rather than using that config setting.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Andrew Davis Andrew Davis
            Sam Hemelryk Sam Hemelryk
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 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.