fix translation, disable throw exception

This commit is contained in:
Mathieu Jaumotte 2022-01-04 11:18:56 +01:00
parent 6a0ce72836
commit 5fead5b467
3 changed files with 6 additions and 4 deletions

View File

@ -55,9 +55,10 @@ class AccompanyingCourseCommentController extends AbstractController
}
}
if (null === $editForm) {
throw new NotFoundHttpException('Unable to find an edit form.');
}
dump($editForm);
//if (null === $editForm) {
// throw new NotFoundHttpException('Unable to find an edit form.');
//}
if ($request->getMethod() === Request::METHOD_POST) {
$currentForm = $editForm->handleRequest($request);

View File

@ -20,7 +20,7 @@
<li>
<button class="btn btn-sm btn-misc" type="button">
<i class="fa fa-flag fa-fw"></i>
Épingler
{{ 'Pin comment'|trans }}
</button>
</li>
{% endif %}

View File

@ -412,6 +412,7 @@ fix it: Compléter
Accompanying Course Comment: Commentaire
Accompanying Course Comment list: Commentaires du parcours
pinned: épinglé
Pin comment: Épingler
Post a new comment: Poster un nouveau commentaire
Write a new comment: Écrire un nouveau commentaire
Edit a comment: Modifier le commentaire