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 Jul 11, 2019
1 parent 3cbaf61 commit fd25d4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1155,12 +1155,13 @@ public function getFullForm($richText = false) {
$question = new PluginFormcreatorQuestion();

$found_questions = $question->getQuestionsFromForm($this->fields['plugin_formcreator_forms_id']);
foreach ($found_questions as $id => $question) {
$fields[$id] = PluginFormcreatorFields::getFieldInstance(
foreach ($found_questions as $questionId => $question) {
$answer = $answers_values['formcreator_field_' . $questionId];
$fields[$questionId] = PluginFormcreatorFields::getFieldInstance(
$question->fields['fieldtype'],
$question
);
$fields[$id]->parseAnswerValues($answers_values);
$fields[$questionId]->deserializeValue($answer);
}

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

0 comments on commit fd25d4e

Please sign in to comment.