diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 946dc0445..cc882a0e1 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -675,7 +675,7 @@ public function updateQuestion(int $formId, int $questionId, array $keyValuePair // Don't allow empty array if (count($keyValuePairs) === 0) { $this->logger->info('Empty keyValuePairs, will not update.'); - throw new OCSBadRequestException('This form is archived and can not be modified'); + throw new OCSBadRequestException('Empty keyValuePairs, will not update.'); } //Don't allow to change id or formId