MDL-79863 qtype_ordering: qtype_ordering force standard settings for Ordering questions used by Reader quizzes

This commit is contained in:
Gordon Bateson
2024-04-04 10:59:23 +08:00
committed by Mathew May
parent eb1db13b70
commit 2d45d4ebf3
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -201,8 +201,9 @@ function xmldb_qtype_ordering_upgrade($oldversion) {
$table = 'qtype_ordering_options';
$DB->set_field_select($table, 'layouttype', 0, $select, $params); // VERTICAL
$DB->set_field_select($table, 'selecttype', 1, $select, $params); // RANDOM
$DB->set_field_select($table, 'selectcount', 6, $select, $params); // 6
$DB->set_field_select($table, 'gradingtype', 1, $select, $params); // RELATIVE
// Note don't set selectcount to 6, because
// Ordering questions for some low level books use 4
}
}
}
+2 -2
View File
@@ -31,5 +31,5 @@ $plugin->cron = 0;
$plugin->component = 'qtype_ordering';
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2010112400; // Moodle 2.0
$plugin->version = 2016032947;
$plugin->release = '2016-03-29 (47)';
$plugin->version = 2016032948;
$plugin->release = '2016-03-29 (48)';