Skip to content

Commit

Permalink
fix(question): bad pasing of user input
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 6, 2020
1 parent e567b53 commit 5963666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ public function getRenderedHtml($canEdit = true, $value = []) {

$key = 'formcreator_field_' . $this->getID();
if ($field->hasInput($value)) {
$field->deserializeValue($value[$key]);
// Parse an HTML input
$field->parseAnswerValues($value);
} else {
// Deserialize the default value from DB
$field->deserializeValue($this->fields['default_values']);
}

Expand Down

0 comments on commit 5963666

Please sign in to comment.