Commit cd8f7a29 authored by Emma's avatar Emma 🦉

fix broken comment editing

parent e1c57032
Pipeline #21558418 passed with stage
in 5 minutes and 2 seconds
......@@ -114,11 +114,11 @@ final class CommentController extends AbstractController {
}
return $this->render('comment/form_errors.html.twig', [
'comment' => $comment,
'editing' => false,
'form' => $form->createView(),
'forum' => $forum,
'submission' => $submission,
'parent' => $comment,
]);
}
......
......@@ -19,8 +19,8 @@
<h1 class="page-heading">{{ block('title') }}</h1>
{% if parent %}
{{ comment(parent) }}
{% if comment %}
{{ comment(comment) }}
{% endif %}
{% include 'comment/_form.html.twig' with { form: form } only %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment