-
Bug
-
Resolution: Fixed
-
Minor
-
3.4
-
MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-61152-master -
The $course variable here is undefined in the case of category event types.
To reproduce:
- Login as an admin.
- Create a category event.
- Take note of the id of that event (If you inspect the link using your browser's dev tools, the event ID is the value in the anchor tag's data-event-id attribute).
- Go to calendar/event.php?id=[THE_EVENT_ID]
- Save the event.
- Expected: The event will be successfully saved and no notice will be shown.
- Actual: The following output is being shown:
Notice: Undefined variable: course in /home/jun/moodles/stable_master/moodle/calendar/lib.php on line 813
Notice: Trying to get property of non-object in /home/jun/moodles/stable_master/moodle/calendar/lib.php on line 813
Skip to main content