mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-85721 qtype_multianswer: Fix version bump
This commit is contained in:
parent
0d1f74f1e3
commit
577411727e
2 changed files with 3 additions and 3 deletions
|
@ -43,13 +43,13 @@ function xmldb_qtype_multianswer_upgrade($oldversion) {
|
|||
// Automatically generated Moodle v5.0.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2025061000) {
|
||||
if ($oldversion < 2025041401) {
|
||||
$task = new \qtype_multianswer\task\cleanup_duplicate_subquestions();
|
||||
if (count($task->find_duplicated_subquestions()) > 0) {
|
||||
mtrace('Duplicated subquestions found. Queueing cleanup task.');
|
||||
\core\task\manager::queue_adhoc_task($task);
|
||||
}
|
||||
upgrade_plugin_savepoint(true, 2025061000, 'qtype', 'multianswer');
|
||||
upgrade_plugin_savepoint(true, 2025041401, 'qtype', 'multianswer');
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'qtype_multianswer';
|
||||
$plugin->version = 2025061000;
|
||||
$plugin->version = 2025041401;
|
||||
|
||||
$plugin->requires = 2025040800;
|
||||
$plugin->dependencies = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue