Skip to content

Commit

Permalink
fix(formanswer): loss of answers upon valdiation
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Nov 29, 2021
1 parent 64eb8a5 commit 21a29ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,9 @@ public function post_updateItem($history = 1) {
if ($this->questionFields !== null) {
/** @var PluginFormcreatorAbstractField $field */
foreach ($this->getQuestionFields($formId) as $questionId => $field) {
if (!$field->hasInput($this->input)) {
continue;
}
$field->moveUploads();
$answer = new PluginFormcreatorAnswer();
$answer->getFromDBByCrit([
Expand Down

0 comments on commit 21a29ba

Please sign in to comment.