From 8f95b79590d053e7c471cf979843b1dfd6ef90e1 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 14 Sep 2018 16:02:08 +0100 Subject: [PATCH] MDL-63371 question: USE_RAW_DATA case in check_qt_var_name_restrictions --- question/engine/questionattempt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/engine/questionattempt.php b/question/engine/questionattempt.php index 5473535b7c6..705594dc3f0 100644 --- a/question/engine/questionattempt.php +++ b/question/engine/questionattempt.php @@ -1184,7 +1184,7 @@ class question_attempt { protected function check_qt_var_name_restrictions($expected) { global $CFG; - if ($CFG->debugdeveloper) { + if ($CFG->debugdeveloper && $expected !== self::USE_RAW_DATA) { foreach ($expected as $key => $value) { if (strpos($key, 'bf_') !== false) { debugging('The bf_ prefix is reserved and cannot be used by question types', DEBUG_DEVELOPER);