MDL-76582 question: Allow response filearea to have different pattern

This commit is contained in:
hieuvu
2023-01-09 09:26:52 +07:00
parent 12e9d9e1bf
commit 2b6bf085af
4 changed files with 64 additions and 9 deletions
+2 -1
View File
@@ -622,7 +622,8 @@ class question_attempt {
// No files yet.
$draftid = 0; // Will be filled in by file_prepare_draft_area.
file_prepare_draft_area($draftid, $contextid, 'question', 'response_' . $name, null);
$filearea = question_file_saver::clean_file_area_name('response_' . $name);
file_prepare_draft_area($draftid, $contextid, 'question', $filearea, null);
return $draftid;
}