Skip to content

Commit

Permalink
fix getting single question
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <[email protected]>
  • Loading branch information
Chartman123 committed Aug 18, 2024
1 parent 72e41a8 commit 9dab01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public function getQuestion(int $formId, int $questionId): DataResponse {

$question = $this->formsService->getQuestion($questionId);

if ($question['id'] !== $formId) {
if ($question['formId'] !== $formId) {
throw new OCSBadRequestException('Question doesn\'t belong to given Form');
}

Expand Down

0 comments on commit 9dab01d

Please sign in to comment.