Skip to content

Commit

Permalink
Merge branch 'stable' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
makmentins committed Jun 18, 2024
2 parents 5102a4a + b1105da commit 82aa6c8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion library
Submodule library updated 2 files
+25 −4 h5p.classes.php
+29 −0 js/h5p.js
20 changes: 15 additions & 5 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'), ' &nbsp; ', false);
$mform->addHelpButton('completionpassgroup', 'completionpass', 'hvp');
$items[] = 'completionpassgroup';
$mform->disabledIf('completionpass' . $suffix, 'completionusegrade', 'notchecked');
$mform->addGroup($group, 'completionpassgroup' . $suffix, get_string('completionpass', 'hvp'), ' &nbsp; ', false);
$mform->addHelpButton('completionpassgroup' . $suffix, 'completionpass', 'hvp');
$items[] = 'completionpassgroup' . $suffix;

return $items;
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 82aa6c8

Please sign in to comment.