MDL-81697 qtype_ordering: correctly reference feedback file areas.

This commit is contained in:
Paul Holden 2024-04-25 21:37:30 +01:00
parent f0c1a3789d
commit 21e6eea20e
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -385,7 +385,7 @@ class qtype_ordering_question extends question_graded_automatically {
$answerid = reset($args); // Value of "itemid" is answer id.
return array_key_exists($answerid, $this->answers);
}
if (in_array($filearea, $this->qtype->feedbackfields)) {
if (in_array($filearea, ['correctfeedback', 'partiallycorrectfeedback', 'incorrectfeedback'])) {
return $this->check_combined_feedback_file_access($qa, $options, $filearea, $args);
}
if ($filearea == 'hint') {