From 8a02ce87593723b3515bd625f19ec6c98d88adc1 Mon Sep 17 00:00:00 2001 From: Edmund Farrow <edmund.farrow@ed.ac.uk> Date: Mon, 8 Jul 2024 12:38:25 +0100 Subject: [PATCH] iss1217 - Add question description to question loader --- api/util/StackQuestionLoader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/util/StackQuestionLoader.php b/api/util/StackQuestionLoader.php index f659abbff..ac3c0565f 100644 --- a/api/util/StackQuestionLoader.php +++ b/api/util/StackQuestionLoader.php @@ -77,6 +77,8 @@ class StackQuestionLoader { $question->questionnote = (string) $xmldata->question->questionnote->text; $question->specificfeedback = (string) $xmldata->question->specificfeedback->text; $question->specificfeedbackformat = (string) $xmldata->question->specificfeedback['format']; + $question->questiondescription = (string) $xmldata->question->questiondescription; + $question->questiondescriptionformat = (string) $xmldata->question->questiondescription['format']; if (isset($xmldata->question->prtcorrect->text)) { $question->prtcorrect = (string) $xmldata->question->prtcorrect->text; $question->prtcorrectformat = (string) $xmldata->question->prtcorrect['format']; -- GitLab