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

Import calendar event without DTEND incorrectly assumes 1 hour duration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.4, 2.7.1
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Calendar
    • Labels:

      Description

      When importing an ICS file that was exported from the Moodle calendar, events with no duration are changed to have a 1 hour duration because they have no DTEND property.

      The following condition is in calendar/lib.php:

      if (empty($event->properties['DTEND'])) {
          $eventrecord->timeduration = 3600; // one hour if no end time specified
      } else {
          $eventrecord->timeduration = strtotime($event->properties['DTEND'][0]->value) - $eventrecord->timestart;
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              gdharris Gary Harris
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Sam Hemelryk
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14