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:
committed by
Mathew May
parent
c6be47652f
commit
c74e93c23c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)';
|
||||
|
||||
Reference in New Issue
Block a user