Skip to content

Commit eb57ca7

Browse files
Update lib/Controller/ApiController.php
Co-authored-by: Christian Hartmann <chris-hartmann@gmx.de> Signed-off-by: L'Africain <fr.cyrille@tiberiade.be>
1 parent 7530ca3 commit eb57ca7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Controller/ApiController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,8 +1378,9 @@ public function newSubmission(int $formId, array $answers, string $shareHash = '
13781378
// Check if max submissions limit is reached
13791379
$maxSubmissions = $form->getMaxSubmissions();
13801380
if ($maxSubmissions > 0 && $this->submissionMapper->countSubmissions($formId) >= $maxSubmissions) {
1381-
throw new OCSForbiddenException($this->l10n->t('Maximum number of submissions reached'));
1381+
throw new OCSForbiddenException('Maximum number of submissions reached');
13821382
}
1383+
13831384
// Insert new submission
13841385
$this->submissionMapper->insert($submission);
13851386

0 commit comments

Comments
 (0)