Defect #23472 » reported_by_me_only_open_issues.patch
app/helpers/my_helper.rb | ||
---|---|---|
41 | 41 |
end |
42 | 42 | |
43 | 43 |
def issuesreportedbyme_items |
44 |
Issue.visible. |
|
44 |
Issue.visible.open.
|
|
45 | 45 |
where(:author_id => User.current.id). |
46 | 46 |
limit(10). |
47 | 47 |
includes(:status, :project, :tracker). |
app/views/my/blocks/_issuesreportedbyme.html.erb | ||
---|---|---|
1 | 1 |
<% reported_issues = issuesreportedbyme_items %> |
2 | 2 |
<h3> |
3 | 3 |
<%= link_to l(:label_reported_issues), |
4 |
issues_path(:set_filter => 1, :status_id => '*', :author_id => 'me', :sort => 'updated_on:desc') %>
|
|
4 |
issues_path(:set_filter => 1, :status_id => 'o', :author_id => 'me', :sort => 'updated_on:desc') %>
|
|
5 | 5 |
(<%= reported_issues.limit(nil).count %>) |
6 | 6 |
</h3> |
7 | 7 |