Details
Description
This is a very subtle issue that was only exposed by qtype_varnumericset (add-on) in Moodle 2.7.
The code was
unset($this->_form->_defaultValues["$field[$key]"]);
|
And it turns out that what this does is try to get the $key'th value from string $field, rather than what was expected:
unset($this->_form->_defaultValues["{$field}[{$key}]"]);
|
Attachments
Issue Links
- Discovered while testing
-
MDL-46308 Importing incomplete calculated questions cases notices
-
- Closed
-