summaryrefslogtreecommitdiff
path: root/app/views/threadreplies/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/threadreplies/edit.html.erb')
-rw-r--r--app/views/threadreplies/edit.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/threadreplies/edit.html.erb b/app/views/threadreplies/edit.html.erb
index c009cb0..8296d9c 100644
--- a/app/views/threadreplies/edit.html.erb
+++ b/app/views/threadreplies/edit.html.erb
@@ -1,7 +1,7 @@
<% title "Edit Thread Reply: #{@reply.thread.title}" %>
<%
- position = @reply.thread.replies.index(@reply)
+ position = @reply.thread.replies.order(:id).index(@reply)
page = position / Kaminari.config.default_per_page + 1
%>