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

Logs report links to unavailable course completion report

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as an Admin.
      2. Create a Course.
        • Set "Enable completion tracking" = Yes.
      3. Enrol a Student and a Teacher into the Course.
      4. Add a new activity or resource to the Course (ex. Assignment).
      5. Go back to the Course.
      6. Go to Course administration > Course completion.
        • make sure that no completion conditions have been selected.
      7. Log in as a Student.
      8. Attempt the activity/resource as necessary to meet the defined activity completion requirements.
      9. Log in as a Teacher.
      10. Go to the Course.
      11. Go to Course administration > Reports > Logs and get logs.
      12. Locate and click on the the event link "Course activity completion updated".
        • make sure you are redirected to the Activity completion report and not to the Course completion report.
      Show
      Login as an Admin. Create a Course. Set "Enable completion tracking" = Yes. Enrol a Student and a Teacher into the Course. Add a new activity or resource to the Course (ex. Assignment). Go back to the Course. Go to Course administration > Course completion. make sure that no completion conditions have been selected. Log in as a Student. Attempt the activity/resource as necessary to meet the defined activity completion requirements. Log in as a Teacher. Go to the Course. Go to Course administration > Reports > Logs and get logs. Locate and click on the the event link "Course activity completion updated". make sure you are redirected to the Activity completion report and not to the Course completion report.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61257-master

      Description

      DESCRIPTION
      The Logs report includes an event which records when a user achieves completion of an activity. The "Course activity completion updated" event links to the Course Completion report. This is problematic because if course completion criteria have not been configured for the course, the user receives an error stating, "No completion criteria set for this course". The Course Completion report is not available in the Reports menu when course completion criteria have not been set, so the Logs report should not provide access to this "inaccessible" report. The event really should link to the Activity completion report which is guaranteed to be available.

      STEPS TO REPLICATE
      1. Create a new course with Enable completion tracking set to Yes.
      2. Enroll a user in the course as a student.
      3. Add a new activity or resource to the course.
      4. Add activity completion settings to the activity or resource.
      5. Go to Course completion and verify that no completion conditions have been selected.
      6. Log in as the student and interact with the activity or resource as necessary to meet the defined activity completion requirements.
      7. As the teacher, go to the Logs report.
      8. Locate the event "Course activity completion updated".
      9. Click on the "Course activity completion updated" link.

      OBSERVED BEHAVIOR:
      User is redirected to the Course Completion report and receives the error "No completion criteria set for this course."

      EXPECTED BEHAVIOR:
      User is redirected to the Activity completion report.

        Attachments

          Activity

            People

            Assignee:
            Geshoski Mihail Geshoski
            Reporter:
            brian.winstead Brian Winstead
            Peer reviewer:
            Marina Glancy
            Integrator:
            Jun Pataleta
            Tester:
            Gladys Basiana
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h