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:
parent
58c8c1ca9f
commit
1faca3a1dd
@ -41,7 +41,7 @@ module MyHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def issuesreportedbyme_items
|
def issuesreportedbyme_items
|
||||||
Issue.visible.
|
Issue.visible.open.
|
||||||
where(:author_id => User.current.id).
|
where(:author_id => User.current.id).
|
||||||
limit(10).
|
limit(10).
|
||||||
includes(:status, :project, :tracker).
|
includes(:status, :project, :tracker).
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<% reported_issues = issuesreportedbyme_items %>
|
<% reported_issues = issuesreportedbyme_items %>
|
||||||
<h3>
|
<h3>
|
||||||
<%= link_to l(:label_reported_issues),
|
<%= 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 %>)
|
(<%= reported_issues.limit(nil).count %>)
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user