Merge branch 'MDL-46212_27' of git://github.com/timhunt/moodle into MOODLE_27_STABLE

This commit is contained in:
Sam Hemelryk
2014-07-08 10:45:01 +12:00
+1 -1
View File
@@ -613,7 +613,7 @@ abstract class question_edit_form extends question_wizard_form {
foreach ($question->options->answers as $answer) {
foreach ($extraanswerfields as $field) {
// See hack comment in {@link data_preprocessing_answers()}.
unset($this->_form->_defaultValues["$field[$key]"]);
unset($this->_form->_defaultValues["{$field}[{$key}]"]);
$extrafieldsdata[$field][$key] = $this->data_preprocessing_extra_answer_field($answer, $field);
}
$key++;