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

Deleting imported repeating events deletes them from all courses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 3.1, 3.2, 3.3
    • Fix Version/s: 3.1.5, 3.2.2
    • Component/s: Backup, Calendar
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a new course (Course A)
      2. In the Calendar, create a event that repeats for several weeks
      3. Create a new course (Course B)
      4. Import Course A into Course B, ensuring 'Include calendar events' is ticked.
      5. In Course B, delete the repeating event (choosing the first instance on the calendar), when prompted choose 'Delete All'.
      6. Verify that only the events were deleted from Course B and the events in Course A remain
      7. Re-import the calendar events from Course A into Course B
      8. verify that the events were added
      9. Import the calendar events from Course A into Course B a second time.
      10. Verify that no duplicate events were created.
      Show
      Create a new course (Course A) In the Calendar, create a event that repeats for several weeks Create a new course (Course B) Import Course A into Course B, ensuring 'Include calendar events' is ticked. In Course B, delete the repeating event (choosing the first instance on the calendar), when prompted choose 'Delete All'. Verify that only the events were deleted from Course B and the events in Course A remain Re-import the calendar events from Course A into Course B verify that the events were added Import the calendar events from Course A into Course B a second time. Verify that no duplicate events were created.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-53991_m33v4

      Description

      When a repeating event is imported from Course A into Course B, the 'repeatid' in mdl_event is not updated. When the repeating event series is deleted from one course, it is deleted from both. The deletion can originate from either course.

      After deletion, the user is redirected into the Calendar of the originating event's course (Course A), not the course they were just viewing (eg Course B).

      Steps to reproduce:

      • Create a new course (Course A)
      • In the Calendar, create a event that repeats for several weeks
      • Create a new course (Course B)
      • Import Course A into Course B, ensuring 'Include calendar events' is ticked.
      • In Course B, delete the repeating event, when prompted choose 'Delete All'.
      • Notice that you're redirected to the Calendar in Course A, and all occurrences of the event have been deleted from both Course A and Course B.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Mar/17