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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            derekw Derek Woolhead
            Nobody Nobody
            Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07