From d60b3c43532357c65ef1ccc22fcaa0650beecd02 Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Fri, 5 Jan 2024 17:23:55 +0100 Subject: [PATCH] another small fix for ApiController Signed-off-by: Timotheus Pokorra --- lib/Controller/ApiController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index ea43c4fcb..5ca595fef 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -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);