From 3818383e146376719dfbdc8ddbeb8f82d58df8bf Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Wed, 31 Jan 2024 09:24:59 +0100 Subject: [PATCH] fix(hiddenfield): escaping problem when displaying default value in question designer --- inc/field/hiddenfield.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/field/hiddenfield.class.php b/inc/field/hiddenfield.class.php index af7ec609f..d2c2320a1 100644 --- a/inc/field/hiddenfield.class.php +++ b/inc/field/hiddenfield.class.php @@ -47,7 +47,7 @@ public function isPrerequisites(): bool { public function showForm(array $options): void { $template = '@formcreator/field/' . $this->question->fields['fieldtype'] . 'field.html.twig'; - $this->question->fields['default_values'] = Html::entities_deep($this->question->fields['default_values']); + // $this->question->fields['default_values'] = Html::entities_deep($this->question->fields['default_values']); $this->deserializeValue($this->question->fields['default_values']); TemplateRenderer::getInstance()->display($template, [ 'item' => $this->question,