diff --git a/mod_form.php b/mod_form.php index 069f273..c559702 100644 --- a/mod_form.php +++ b/mod_form.php @@ -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 {