diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index c82fa1b..a37f07f 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -148,7 +148,7 @@ class ApiController extends Controller { $this->logger->debug('Could not find form'); return new Http\JSONResponse([], Http::STATUS_BAD_REQUEST); } - + if (!$this->formsService->hasUserAccess($id)) { $this->logger->debug('User has no permissions to get this form'); return new Http\JSONResponse([], Http::STATUS_FORBIDDEN); @@ -171,7 +171,7 @@ class ApiController extends Controller { 16, ISecureRandom::CHAR_HUMAN_READABLE )); - $form->setTitle('New form'); + $form->setTitle(''); $form->setDescription(''); $form->setAccess([ 'type' => 'public' @@ -279,7 +279,7 @@ class ApiController extends Controller { $this->logger->debug('Invalid type'); return new Http\JSONResponse(['message' => 'Invalid type'], Http::STATUS_BAD_REQUEST); } - + try { $form = $this->formMapper->findById($formId); } catch (IMapperException $e) { @@ -633,7 +633,7 @@ class ApiController extends Controller { // Append Display Name if (substr($submission['userId'], 0, 10) === 'anon-user-') { // Anonymous User - $submission['userDisplayName'] = $this->l10n->t('anonymous user'); + $submission['userDisplayName'] = $this->l10n->t('Anonymous response'); } else { $userEntity = $this->userManager->get($submission['userId']); diff --git a/src/components/AppNavigationForm.vue b/src/components/AppNavigationForm.vue index 7922e12..a476738 100644 --- a/src/components/AppNavigationForm.vue +++ b/src/components/AppNavigationForm.vue @@ -25,7 +25,7 @@ ref="navigationItem" :exact="true" :icon="icon" - :title="form.title" + :title="formTitle" :to="{ name: 'edit', params: { hash: form.hash } }">