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

When editing an event in the calendar block the number of events in the "repeat series" is always set to 1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.8, 2.1.5, 2.2.2, 2.3
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Calendar
    • Environment:
      N/A
    • Testing Instructions:
      Hide

      1. Create a new course event.
      2. Check the "Repeat this event" checkbox.
      3. Set a number of repeats greater than 1.
      4. Save the event.
      5. Go back and edit the event. Under "Repeated events", the text will read "Apply changes to all 1 events in this repeat series", not the number of events.

      Show
      1. Create a new course event. 2. Check the "Repeat this event" checkbox. 3. Set a number of repeats greater than 1. 4. Save the event. 5. Go back and edit the event. Under "Repeated events", the text will read "Apply changes to all 1 events in this repeat series", not the number of events.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-26243-master

      Description

      The calender block sets the local variable $repeatedevents to show how many events are in the "repeat series". However, $repeatevents gets the result from a boolean test, so it's always 1 or 0 (and in the latter case won't display everything, which is fine). The linked patch displays the correct number. This is a display issue only.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/12