Skip to content

Commit

Permalink
fix(targetticket,targetchange): fix not rendered fields
Browse files Browse the repository at this point in the history
checkboxes and multiselect
  • Loading branch information
btry committed Aug 22, 2019
1 parent 621f036 commit 7f67076
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1117,8 +1117,9 @@ public function getFullForm($richText = false) {
$form = new PluginFormcreatorForm();
$form->getFromDB($this->fields['plugin_formcreator_forms_id']);
$fields = $form->getFields();
foreach ($fields as $id => $question) {
$fields[$id]->parseAnswerValues($answers_values);
foreach ($fields as $questionId => $question) {
$answer = $answers_values['formcreator_field_' . $questionId];
$fields[$questionId]->deserializeValue($answer);
}

// TODO: code very close to PluginFormcreatorTargetBase::parseTags() (factorizable ?)
Expand Down

0 comments on commit 7f67076

Please sign in to comment.