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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user