-
Bug
-
Resolution: Fixed
-
Minor
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
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}]"]);
|
- Discovered while testing
-
MDL-46308 Importing incomplete calculated questions cases notices
- Closed