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

Lesson due date user override is not deleted from calendar and myoverview upon unenrol

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.3
    • Component/s: Calendar, Lesson
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Create a user
      2. Create two courses with a start date set to yesterday
      3. Enrol the user in both courses
      4. In course 1
        1. Create a lesson activity with a due date in the future
        2. Create a user override in the lesson for the user and set a different due date
      5. In course 2
        1. Create a lesson activity with a due date set to 3 weeks in the past
      6. Login as the user
      7. Confirm that you see the override event from course 1 in the overview block on the dashboard
      8. Confirm that you don't see the event from the lesson activity in course 2
      9. Confirm that you see the override event from course 1 in the calendar calendar
      10. Click the "sort by courses" button and confirm that:
        1. You see the override event from course 1 in the event list for course 1
        2. You don't see the lesson event for course two and instead you see a "no upcoming activities due" placeholder image
      11. Login as the teacher
      12. Unenrol the user from course 1 (the one with the override set)
      13. Log in as the user
      14. Confirm that you do not see the override event in the overview block on the dashboard
      15. Confirm that you do not see the override event in the calendar calendar
      Show
      Test 1 Create a user Create two courses with a start date set to yesterday Enrol the user in both courses In course 1 Create a lesson activity with a due date in the future Create a user override in the lesson for the user and set a different due date In course 2 Create a lesson activity with a due date set to 3 weeks in the past Login as the user Confirm that you see the override event from course 1 in the overview block on the dashboard Confirm that you don't see the event from the lesson activity in course 2 Confirm that you see the override event from course 1 in the calendar calendar Click the "sort by courses" button and confirm that: You see the override event from course 1 in the event list for course 1 You don't see the lesson event for course two and instead you see a "no upcoming activities due" placeholder image Login as the teacher Unenrol the user from course 1 (the one with the override set) Log in as the user Confirm that you do not see the override event in the overview block on the dashboard Confirm that you do not see the override event in the calendar calendar
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-58518-master

      Description

      1. Create a lesson
      2. Create a user
      3. In user override, set a due date for the user
      4. Login as the user
      5. See the event in your calendar and on myoverview
      6. Login as the teacher
      7. Unenrol the user
      8. Log in as the user
      9. You can still see the event, even though it should be gone. If you try to click to the activity, you will get a message saying that you are not enrolled

      If reproduction is not possible, try enrolling the user in two groups first, and use two different group overrides for the due dates on the same lesson. Then unenrol the user.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ryanwyllie Ryan Wyllie
              Reporter:
              johno John Okely
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Jun Pataleta
              Tester:
              Ankit Agarwal
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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