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

Calendar events of all user overrides are shown for a user that has a user override, but does not belong in any group

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.3
    • Component/s: Calendar
    • Testing Instructions:
      Hide
      1. Create a course C1.
      2. Enrol students s1, s2, s3 and s4 to C1.
      3. Create a group g1 in C1 with s2 and s3 as members.
      4. Create an assignment with a due date.
      5. Create user overrides for the assignment's due date for s1 and s2.
      6. Create a group override for the assignment's due date for g1.
      7. Login as s1 and go to the calendar.
        • Confirm that the calendar only displays the user override event for the assignment for s1.
      8. Login as s2 and go to the calendar.
        • Confirm that the calendar only displays the user override event for the assignment for s2.
      9. Login as s3 and go to the calendar.
        • Confirm that the calendar only displays the group override event for the assignment for g1.
      10. Login as s4 and go to the calendar.
        • Confirm that the calendar only displays the assignment's original due date.

      Bonus: Repeat the above tests, but for lesson and quiz activities.

      Show
      Create a course C1. Enrol students s1, s2, s3 and s4 to C1. Create a group g1 in C1 with s2 and s3 as members. Create an assignment with a due date. Create user overrides for the assignment's due date for s1 and s2. Create a group override for the assignment's due date for g1. Login as s1 and go to the calendar. Confirm that the calendar only displays the user override event for the assignment for s1. Login as s2 and go to the calendar. Confirm that the calendar only displays the user override event for the assignment for s2. Login as s3 and go to the calendar. Confirm that the calendar only displays the group override event for the assignment for g1. Login as s4 and go to the calendar. Confirm that the calendar only displays the assignment's original due date. Bonus: Repeat the above tests, but for lesson and quiz activities.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-58566-master

      Description

      To reproduce:

      1. Create a course C1.
      2. Enrol students s1, s2 and s3 to C1.
      3. Create a group g1 in C1 with s2 and s3 as members.
      4. Create an assignment (due date optional).
      5. Create user overrides for the assignment's due date for s1 and s2.
      6. Create a group override for the assignment's due date for g1.
      7. Login as s1 and go to the calendar.
      8. Expected
        • The calendar should only display the user override event for the assignment for s1.
      9. Actual
        • The calendar shows the user overrides for s1 and s2 for the assignment's due date.

      Same thing happens for user overrides for quiz and lesson.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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