MDL-69765 qtype_essay: Create temporary draft file area only one time.

This commit is contained in:
Luca Bösch
2025-05-31 12:58:52 +02:00
parent 1260cb24b8
commit 6d2b25f10f
-3
View File
@@ -162,9 +162,6 @@ class qtype_essay_renderer extends qtype_renderer {
'attachments', $options->context->id);
$pickeroptions->context = $options->context;
$pickeroptions->return_types = FILE_INTERNAL | FILE_CONTROLLED_LINK;
$pickeroptions->itemid = $qa->prepare_response_files_draft_itemid(
'attachments', $options->context->id);
$pickeroptions->accepted_types = $qa->get_question()->filetypeslist;
$fm = new form_filemanager($pickeroptions);