diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb index eb2507136..c39973da7 100644 --- a/app/views/comments/_form.html.erb +++ b/app/views/comments/_form.html.erb @@ -1,5 +1,5 @@ -<% css_id = parent_or_commentable_dom_id(parent_id, commentable) %> -<% cache [locale_and_user_status, css_id] do %> +<% cache [locale_and_user_status, parent_id, commentable] do %> + <% css_id = parent_or_commentable_dom_id(parent_id, commentable) %>
> <%= form_for [commentable, Comment.new], remote: true do |f| %> <%= label_tag "comment-body-#{css_id}", t("comments.form.leave_comment") %>