MDL-65313 core_favourites: component scoped deletion now requires itemid
authorJake Dallimore <jake@moodle.com>
Tue, 7 May 2019 02:30:32 +0000 (10:30 +0800)
committerAdrian Greeve <abgreeve@gmail.com>
Tue, 7 May 2019 08:26:46 +0000 (16:26 +0800)
commita0523b826e1205bbaa635ec2b4b31676821d165c
tree19fa737dc7522b605bf37a3cffa9c8d2fbc15ce6
parent7726bec6b3038c97a74d87aa6bef17455d594420
MDL-65313 core_favourites: component scoped deletion now requires itemid

This now requires itemid, which cannot be null. This is safer. The
context can still be passed in as an optional parameter.
favourites/classes/local/service/component_favourite_service.php
favourites/tests/component_favourite_service_test.php
message/classes/api.php