From c6f3b9b527563d9d8b9ac8c030c3362b376853c2 Mon Sep 17 00:00:00 2001
From: Olivier PEREZ <olivier@olivierperez.fr>
Date: Tue, 8 Dec 2015 00:16:32 +0100
Subject: [PATCH] Fill "action" attribute in comments form

---
 tpl/part/comments.tpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tpl/part/comments.tpl b/tpl/part/comments.tpl
index c25adf28..bc7453bb 100644
--- a/tpl/part/comments.tpl
+++ b/tpl/part/comments.tpl
@@ -1,5 +1,5 @@
 <hr role="presentation" id="comments" class="hidden-print"/>
-<form action="#comments" method="POST">
+<form action="{if $admin}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}#comments" method="POST">
 
     {* Comment list *}
 
-- 
GitLab