From cd2a074cc28f3bfd64242d4cf476ab011af9c607 Mon Sep 17 00:00:00 2001 From: Khoa Nguyen Date: Thu, 21 Nov 2024 16:53:43 +0700 Subject: [PATCH] MDL-83727 question: Core question privacy provider misuses lazy-loading --- question/classes/privacy/provider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/classes/privacy/provider.php b/question/classes/privacy/provider.php index 23fc4193596..8a9857f4791 100644 --- a/question/classes/privacy/provider.php +++ b/question/classes/privacy/provider.php @@ -169,7 +169,7 @@ class provider implements ]); foreach ($quba->get_attempt_iterator() as $qa) { - $question = $qa->get_question(false); + $question = $qa->get_question(); $slotno = $qa->get_slot(); $questionnocontext = array_merge($questionscontext, [$slotno]); @@ -302,7 +302,7 @@ class provider implements $step->get_id() ); - $stepdata->comment = $qa->get_behaviour(false)->format_comment($comment, $commentformat); + $stepdata->comment = $qa->get_behaviour()->format_comment($comment, $commentformat); } // Export any response files associated with this step.