From a1642f1c74d10481b17b39de67827ca004a8662e Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 24 Sep 2015 10:11:05 -0400 Subject: [PATCH] Flag/appeal search: fix creator param not always being preserved --- app/presenters/user_presenter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index e2ecf919b..ed3c8a268 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -162,11 +162,11 @@ class UserPresenter end def appeal_count(template) - template.link_to(user.appeal_count, template.post_appeals_path(:search => {:creator_id => user.id})) + template.link_to(user.appeal_count, template.post_appeals_path(:search => {:creator_name => user.name})) end def flag_count(template) - template.link_to(user.flag_count, template.post_flags_path(:search => {:creator_id => user.id})) + template.link_to(user.flag_count, template.post_flags_path(:search => {:creator_name => user.name})) end def approval_count(template)