From f378fafd3b347b7130259549a82eb03504fd747e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Fri, 12 May 2017 13:24:28 +0200 Subject: [PATCH] MDL-58921 questions: Calculated question name passing multilang. In edit calculated question the question name does pass format_string to process multilang tags. --- question/type/calculated/edit_calculated_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/calculated/edit_calculated_form.php b/question/type/calculated/edit_calculated_form.php index dcc48a10ef1..4ded3cc84b4 100644 --- a/question/type/calculated/edit_calculated_form.php +++ b/question/type/calculated/edit_calculated_form.php @@ -138,7 +138,7 @@ class qtype_calculated_edit_form extends qtype_numerical_edit_form { if (isset($this->question->id)) { $mform->insertElementBefore($mform->createElement('static', 'initialname', get_string('questionstoredname', 'qtype_calculated'), - $this->initialname), 'name'); + format_string($this->initialname, true, array('context' => $this->context))), 'name'); }; $addfieldsname = 'updatecategory'; $addstring = get_string('updatecategory', 'qtype_calculated');