h5p / moodle-mod_hvp

H5P Plugin for Moodle
GNU General Public License v3.0
131 stars 168 forks source link

Fix error caused by loading assets in completion pages #533

Open aydevworks opened 6 months ago

aydevworks commented 6 months ago

This PR will fix the following warning at the course default completion page. e.g. https://moodlesite/course/defaultcompletion.php?id=1

data_preprocessing function of module hvp should be fixed so it can be shown together with other Default activity completion forms line 138 of /completion/classes/defaultedit_form.php: call to debugging() line 217 of /lib/formslib.php: call to core_completion_defaultedit_form->definition() line 45 of /completion/classes/defaultedit_form.php: call to moodleform->construct() line 89 of /course/classes/output/bulk_activity_completion_renderer.php: call to core_completion_defaultedit_form->construct() line 97 of /course/defaultcompletion.php: call to core_course_bulk_activity_completion_renderer->defaultcompletion()