Moodle

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Tim Hunt added a comment -

Thanks Derek.

Show
Tim Hunt added a comment - Thanks Derek.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: