From afa6deec480adbb88a37375f95b44d1e1f12fa09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Wed, 12 Jul 2017 09:57:06 +0200 Subject: [PATCH] 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. --- mod/workshop/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/workshop/locallib.php b/mod/workshop/locallib.php index 9c89c718eee..120841b7275 100644 --- a/mod/workshop/locallib.php +++ b/mod/workshop/locallib.php @@ -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; }