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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.7.3, 1.8.3, 1.9
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

            Assignee:
            timhunt Tim Hunt
            Reporter:
            derekw Derek Woolhead
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07