1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 16:31:12 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2016-08-31 16:58:17 +00:00
parent 58c8c1ca9f
commit 1faca3a1dd
2 changed files with 2 additions and 2 deletions

View File

@ -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).

View File

@ -1,7 +1,7 @@
<% reported_issues = issuesreportedbyme_items %>
<h3>
<%= 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 %>)
</h3>