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

Restore of quiz module may create calendar events without a date/time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.7.3, 1.8.3, 1.9
    • 1.9
    • Quiz
    • None
    • MOODLE_19_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      When/after a module is restored, the <mod>_refresh_events() is invoked if it exists. In the case of the quiz module this adds calendar events for the corresponding quiz dates. However, unfortunately it adds events for quizzes/dates that have been disabled, so a calendar event is created for the course with no starting time i.e. event.timestart = 0. To the best of my knowledge, the attached patch fixes this issue, by only created calendar events if the quiz has a start date/time.

            timhunt Tim Hunt
            derekw Derek Woolhead (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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