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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1.1
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Oct/11