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

fix the 'add' module page javascript failing on Moodle 4.3+ #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function display() {
// When conditional access is enabled, moodle expects id_availabilityconditionsjson field
// in standard module form, as we don't use standard form.
echo html_writer::start_tag('form', array('style'=>'display:none'));
echo html_writer::tag('div', '', array('id' => 'fitem_id_availabilityconditionsjson'));
echo html_writer::tag('div', '', array('id' => 'availabilityconditions-loading'));
echo html_writer::empty_tag('input', array('id'=>'id_availabilityconditionsjson', 'type'=>'hidden'));
echo html_writer::end_tag('form');
} else {
Expand Down