MDL-57730 core_calendar: handle '0' as a courseid
commitbb19f80414b13a5935fcae33d94870e34fb1d0be
authorMark Nelson <markn@moodle.com>
Thu, 23 Feb 2017 09:06:44 +0000 (23 17:06 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 3 Apr 2017 03:36:33 +0000 (3 11:36 +0800)
tree72c558d8d4ce958fbad3c12e810f36c145e5c778
parent5e6e3babf43ac993d9b663709f68d7c8af2ffdaf
MDL-57730 core_calendar: handle '0' as a courseid

User overrides set the course id as 0 in the events table
(Moodle can be stupid). We need to deal with this.

Part of MDL-55611 epic.
calendar/classes/local/event/factories/event_abstract_factory.php