From 88b4bc2bebf60be67e6ed9ad867fddcf5d69d748 Mon Sep 17 00:00:00 2001
From: Paul Holden <paulh@moodle.com>
Date: Thu, 25 Apr 2024 21:37:30 +0100
Subject: [PATCH] MDL-81697 qtype_ordering: correctly reference feedback file
 areas.

---
 question/type/ordering/question.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/question/type/ordering/question.php b/question/type/ordering/question.php
index 8ed6afee37c..fce4b9b2125 100644
--- a/question/type/ordering/question.php
+++ b/question/type/ordering/question.php
@@ -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') {