Skip to content

Commit

Permalink
fix(hiddenfield): escaping problem when displaying default value in q…
Browse files Browse the repository at this point in the history
…uestion designer
  • Loading branch information
btry committed Jan 31, 2024
1 parent 8e356d3 commit 3818383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/hiddenfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3818383

Please sign in to comment.