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

Course completion report: default index page not explicitly stated in URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.5, 3.0.3, 3.1.7, 3.2.4, 3.3
    • Fix Version/s: 3.2.5, 3.3.2
    • Component/s: Reports
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course with completion tracking and visible groups.
      2. Enrol 5 students in the course.
      3. Create 2 groups.
      4. Add one student to each group.
      5. Add an assignment activity.
      6. Select 'Course completion' from the course menu.
      7. Under 'Condition: Activity completion' select the assignment checkbox and save.
      8. Change the constant COMPLETION_REPORT_PAGE to 2 in report/completion/index.php.
      9. Click on 'Course administration' > 'Reports > 'Course completion'.
      10. Confirm changing between groups and all participants works.
      11. Confirm selecting first and last name works.
      12. Confirm changing pages works.
      Show
      Create a course with completion tracking and visible groups. Enrol 5 students in the course. Create 2 groups. Add one student to each group. Add an assignment activity. Select 'Course completion' from the course menu. Under 'Condition: Activity completion' select the assignment checkbox and save. Change the constant COMPLETION_REPORT_PAGE to 2 in report/completion/index.php. Click on 'Course administration' > 'Reports > 'Course completion'. Confirm changing between groups and all participants works. Confirm selecting first and last name works. Confirm changing pages works.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53936-completion-report-index-explicitly

      Description

      Checking the reports on my server I accessed the course completion:

      http://example.com/report/completion/index.php?course=x

      when clicking on any page different than the first one, it doesn't work.

      I went to
      /report/completion/index.php

      and changed line 209
      $link = $CFG->wwwroot.'/report/completion/?course='.$course->id:
      into
      $link = $CFG->wwwroot.'/report/completion/index.php?course='.$course->id;

      and it worked.
      I have a prod server running 2.9.5 and a dev server with 3.0.3 and both codebases have the same minor bug.

      Thanks

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Sep/17