MDL-79863 qtype_ordering: qtype_ordering modify declaration of parameters accepted by get_default_value method in the edit form

This commit is contained in:
Gordon Bateson
2024-04-04 10:59:30 +08:00
committed by Mathew May
parent c6be47652f
commit c74e93c23c
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -2,6 +2,9 @@
Change log for qtype_ordering
========================================
2021-06-08 (01)
- modify declaration of parameters accepted by get_default_value method in the edit form
2019-12-14 (00)
- Thanks Tim Hunt: (1) Update Behat tests to use the MDL-66821 changes (2) Fix Behat test that was failing
- Thanks HuongNV13: (1) Items crash together horizontally (2) Number/letter no longer tracks with dragged item
@@ -418,7 +418,7 @@ class qtype_ordering_edit_form extends question_edit_form {
* @param string|mixed|null $default Default value (optional, default = null)
* @return string|mixed|null Default value for field with this $name
*/
protected function get_default_value($name, $default=null) {
protected function get_default_value(string $name, $default) {
return get_user_preferences("qtype_ordering_$name", $default);
}
+2 -2
View File
@@ -29,5 +29,5 @@ $plugin->cron = 0;
$plugin->component = 'qtype_ordering';
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2015051100; // Moodle 2.9.
$plugin->version = 2019121400;
$plugin->release = '2019-12-14 (00)';
$plugin->version = 2021060801;
$plugin->release = '2021-06-08 (01)';