Skip to content

Commit

Permalink
MDL-63371 question: USE_RAW_DATA case in check_qt_var_name_restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Sep 14, 2018
1 parent 674ef9b commit 802ff4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/engine/questionattempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ public function get_submitted_data($postdata = null) {
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);
Expand Down

0 comments on commit 802ff4c

Please sign in to comment.