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

XMLWordPrintable

    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MDL-26243-master
    • 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.

      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.

            cfulton Charles Fulton
            cfulton Charles Fulton
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.