diff --git a/library b/library index dca8f6db6..f3579c0d2 160000 --- a/library +++ b/library @@ -1 +1 @@ -Subproject commit dca8f6db6839d3401a37360fbd7ad63443db6aa7 +Subproject commit f3579c0d28205bf34490ee151c07d43a2ffc3507 diff --git a/mod_form.php b/mod_form.php index 62bc6873b..7b34089ef 100644 --- a/mod_form.php +++ b/mod_form.php @@ -434,15 +434,25 @@ public function get_data() { } public function add_completion_rules() { + global $CFG; + $mform =& $this->_form; + + // Changes for Moodle 4.3 - MDL-78516. + if ($CFG->branch < 403) { + $suffix = ''; + } else { + $suffix = $this->get_suffix(); + } + $items = array(); $group = array(); - $group[] = $mform->createElement('advcheckbox', 'completionpass', null, get_string('completionpass', 'hvp'), + $group[] = $mform->createElement('advcheckbox', 'completionpass' . $suffix, null, get_string('completionpass', 'hvp'), array('group' => 'cpass')); - $mform->disabledIf('completionpass', 'completionusegrade', 'notchecked'); - $mform->addGroup($group, 'completionpassgroup', get_string('completionpass', 'hvp'), '   ', false); - $mform->addHelpButton('completionpassgroup', 'completionpass', 'hvp'); - $items[] = 'completionpassgroup'; + $mform->disabledIf('completionpass' . $suffix, 'completionusegrade', 'notchecked'); + $mform->addGroup($group, 'completionpassgroup' . $suffix, get_string('completionpass', 'hvp'), '   ', false); + $mform->addHelpButton('completionpassgroup' . $suffix, 'completionpass', 'hvp'); + $items[] = 'completionpassgroup' . $suffix; return $items; } diff --git a/version.php b/version.php index deb604d1f..06fa5b7a2 100644 --- a/version.php +++ b/version.php @@ -23,9 +23,9 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023061200; +$plugin->version = 2023122500; $plugin->requires = 2013051403; $plugin->cron = 0; $plugin->component = 'mod_hvp'; $plugin->maturity = MATURITY_STABLE; -$plugin->release = '1.23.2'; +$plugin->release = '1.26.1';