From 1faca3a1dd0f21cfbcd38fa522a313c14edd7b6c 2016-08-31 16:58:17 From: Jean-Philippe Lang Date: 2016-08-31 16:58:17 Subject: [PATCH] Show open issues only in "Reported Issues" on My page (#23472). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@15772 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb index 83cc1e3..4942d7e 100644 --- a/app/helpers/my_helper.rb +++ b/app/helpers/my_helper.rb @@ -41,7 +41,7 @@ module MyHelper end def issuesreportedbyme_items - Issue.visible. + Issue.visible.open. where(:author_id => User.current.id). limit(10). includes(:status, :project, :tracker). diff --git a/app/views/my/blocks/_issuesreportedbyme.html.erb b/app/views/my/blocks/_issuesreportedbyme.html.erb index 5b0e5b2..91557c0 100644 --- a/app/views/my/blocks/_issuesreportedbyme.html.erb +++ b/app/views/my/blocks/_issuesreportedbyme.html.erb @@ -1,7 +1,7 @@ <% reported_issues = issuesreportedbyme_items %>

<%= link_to l(:label_reported_issues), - issues_path(:set_filter => 1, :status_id => '*', :author_id => 'me', :sort => 'updated_on:desc') %> + issues_path(:set_filter => 1, :status_id => 'o', :author_id => 'me', :sort => 'updated_on:desc') %> (<%= reported_issues.limit(nil).count %>)