MDL-69704 course: catch exception when calling get_course_content_items
authorSara Arjona <sara@moodle.com>
Thu, 1 Oct 2020 16:48:25 +0000 (18:48 +0200)
committerSara Arjona <sara@moodle.com>
Thu, 1 Oct 2020 17:54:35 +0000 (19:54 +0200)
commit64fbd346ba9f60b3a61f795c93bd7c9708f2e67e
treef0a281d089a0b8f2b8d6edb06e6012dac7d43d93
parente049d30613b4ef09910b1b89ae97f176bdc122cc
MDL-69704 course: catch exception when calling get_course_content_items

When plugins are removed from disk, an exception is thrown when
calling component_callback_exists.
This exception should be catched here in order to load properly
the activity chooser (otherwise, the exception will be displayed
and no activity will appear).
course/classes/local/service/content_item_service.php