From 6ec5cfa4e8fb6200424a2ac1b4714c9deda093a4 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Wed, 19 Jul 2023 12:19:39 +0800 Subject: [PATCH] MDL-77328 qtype_calculated: Add upgrade.txt notes * Question type plugins that extend qtype_calculated should be made aware of the changes about the new question_answer type \qtype_calculated\qtype_calculated_answer. --- question/type/calculated/upgrade.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 question/type/calculated/upgrade.txt diff --git a/question/type/calculated/upgrade.txt b/question/type/calculated/upgrade.txt new file mode 100644 index 00000000000..79608692579 --- /dev/null +++ b/question/type/calculated/upgrade.txt @@ -0,0 +1,6 @@ +This file describes API changes in /question/type/calculated/*. + +=== 4.2.2 === +* \qtype_calculated answers are now of the type \qtype_calculated\qtype_calculated_answer which extends \qtype_numerical_answer. + Plugins extending \qtype_calculated and still reference \qtype_numerical_answer in their code (e.g. in test helper functions) + should update their code to reference \qtype_calculated\qtype_calculated_answer instead.