Skip to content

Commit

Permalink
another small fix for ApiController
Browse files Browse the repository at this point in the history
Signed-off-by: Timotheus Pokorra <[email protected]>
  • Loading branch information
tpokorra committed Jan 5, 2024
1 parent cd1eafa commit d60b3c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1238,9 +1238,7 @@ public function insertSubmission(int $formId, array $answers, string $shareHash
continue;
}

$question = $questions[$questionIndex];

$this->storeAnswersForQuestion($submission->getId(), $question, $answerArray, false);
$this->storeAnswersForQuestion($submission->getId(), $questions[$questionIndex], $answerArray, false);
}

$this->formsService->setLastUpdatedTimestamp($formId);
Expand Down

0 comments on commit d60b3c4

Please sign in to comment.