Skip to content

Commit

Permalink
fix(textfield,actorsfield): missing default value on edit
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
btry committed Dec 13, 2019

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband
1 parent 1e2c07b commit d9327ac
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/fields/actorfield.class.php
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ public function getDesignSpecializationField() {
$additions .= Html::textarea([
'name' => 'default_values',
'id' => 'default_values',
'value' => $this->question->fields['default_values'],
'value' => Html::entities_deep($this->getValueForDesign()),
'cols' => '50',
'display' => false,
]);
2 changes: 1 addition & 1 deletion inc/fields/textareafield.class.php
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ public function getDesignSpecializationField() {
$additions .= Html::textarea([
'name' => 'default_values',
'id' => 'default_values',
'value' => Html::entities_deep($this->getValueForDesign()),
'value' => $this->getValueForDesign(),
'enable_rich_text' => true,
'display' => false,
]);

0 comments on commit d9327ac

Please sign in to comment.