Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for Moodle 4.3+ #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

opitz
Copy link

@opitz opitz commented Dec 6, 2023

return null if $cmid is null for helixmedia_get_preid() in lib.php.

Since Moodle 4.3 showing the "Default activity completion" for a course will trigger the definition() method in mod_form.php.
This will result in an error as $cmid is still null at that time and get_coursemodule_from_id() will fail to return a MUST_EXIST object.

This will fix #15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in Default activity completion
1 participant