Skip to content

Commit

Permalink
fix(formanswer): load answers when validating a formanswer
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 2, 2021
1 parent de07262 commit 9ea1460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,15 +890,15 @@ public function getFullForm($richText = false) {
}

// retrieve answers
$form = $this->getForm();
$fields = $form->getFields();
$formFk = PluginFormcreatorForm::getForeignKeyField();
$fields = $this->getQuestionFields($this->fields[$formFk]);

$this->deserializeAnswers();

// TODO: code very close to PluginFormcreatorAbstractTarget::parseTags() (factorizable ?)
// compute all questions
$questionTable = PluginFormcreatorQuestion::getTable();
$sectionTable = PluginFormcreatorSection::getTable();
$formFk = PluginFormcreatorForm::getForeignKeyField();
$sectionFk = PluginFormcreatorSection::getForeignKeyField();
$questions = $DB->request([
'SELECT' => [
Expand Down

0 comments on commit 9ea1460

Please sign in to comment.