MDL-55956 calendar: Show only one of duplicate events relevant to user
authorJun Pataleta <jun@moodle.com>
Wed, 11 Jan 2017 08:25:38 +0000 (16:25 +0800)
committerJun Pataleta <jun@moodle.com>
Tue, 7 Mar 2017 03:33:17 +0000 (11:33 +0800)
commitf52459bbbe02fe07fb277a90dc70b2d4531f5948
treea652ad4f7988de5c204f417b1b0cb55382617e09
parent98239b2df84dc9af5ea551c30522507a98fc047a
MDL-55956 calendar: Show only one of duplicate events relevant to user

If there are multiple, non-repeating events with the same module name,
instance and event type. The most specific event or the event with the
highest priority will be shown.
The ordering of event priorities:
  User override events > Group override events > Course events.
If there are no user override events and there are multiple group
overrides for an event, then the one with the highest priority will be
shown.
calendar/lib.php
calendar/tests/externallib_test.php
calendar/tests/lib_test.php