MDL-56486 workshop: Fix accepted_types for submission attachments

It was a copy&paste mistake that the accepted_types option for the
submission attachments used the value configured for overall feedback
attachments.

Credit goes to Marina Glancy for catching this during testing.
This commit is contained in:
David Mudrák
2017-07-12 09:57:06 +02:00
parent fd8fe9c1db
commit afa6deec48
+1 -1
View File
@@ -2532,7 +2532,7 @@ class workshop {
);
$filetypesutil = new \core_form\filetypes_util();
$options['accepted_types'] = $filetypesutil->normalize_file_types($this->overallfeedbackfiletypes);
$options['accepted_types'] = $filetypesutil->normalize_file_types($this->submissionfiletypes);
return $options;
}