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

Duplicating a chat activity results in all chats appearing in the calendar, regardless of the 'specified session time' setting.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a chat activity with the default settings and save it
      2. Create a duplicate
      3. Refresh the browser (course page)
      4. View the upcoming events block and the calendar to verify that you DO NOT have 2 chat activities in either location.
      5. Edit the duplicate chat activity and rename it and set Repeat/publish session times to 'No repeats - publish the specified time only'
      6. Click the 'Save and display' button
      7. View the upcoming events block and the calendar to verify that the edited chat activity appears in the calendar.
      Show
      Create a chat activity with the default settings and save it Create a duplicate Refresh the browser (course page) View the upcoming events block and the calendar to verify that you DO NOT have 2 chat activities in either location. Edit the duplicate chat activity and rename it and set Repeat/publish session times to 'No repeats - publish the specified time only' Click the 'Save and display' button View the upcoming events block and the calendar to verify that the edited chat activity appears in the calendar.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-55568_m33v2

      Description

      Duplicating a chat activity results in EVERY instance of the activity appearing in the calendar (regardless of whether it was before)

      Once MDL-55869 was fixed, chat activities are now properly displayed in the calendar. The scenario of duplicating a chat activity was missed from that fix, so when you duplicate the activity, EVERY chat activity is added to the calendar.

      Steps to recreate

      1. Create a chat activity and set Repeat/publish session times to 'No repeats - publish the specified time only'
      2. Create a duplicate
      3. Reload the course page
      4. View the upcoming events block and the calendar

      Expected result:
      Neither activity should be listed in the calendar

      Actual result:
      Both activities are displayed in the calendar.

      — Original Description —
      Steps to recreate:

      1. Create a chat activity and save it
      2. Create a duplicate
      3. Edit the duplicate chat activity and rename it and set Repeat/publish session times to 'No repeats - publish the specified time only'
      4. Click the 'Save and display' button
      5. View the upcoming events block and the calendar

      Expected result:

      The specified chat session time is displayed in the upcoming events block and the calendar.

      Actual result:

      The specified chat session time is not displayed.

      Note: Issue summary and description amended to clarify that the bug only occurs when editing a duplicated activity, or (as we've found in Learn Moodle) a restored activity.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/17