diff options
Diffstat (limited to 'app/views/my/blocks/_issuesassignedtome.rhtml')
-rw-r--r-- | app/views/my/blocks/_issuesassignedtome.rhtml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/my/blocks/_issuesassignedtome.rhtml b/app/views/my/blocks/_issuesassignedtome.rhtml index f5e2e3e65..507a45be9 100644 --- a/app/views/my/blocks/_issuesassignedtome.rhtml +++ b/app/views/my/blocks/_issuesassignedtome.rhtml @@ -1,6 +1,7 @@ -<h3><%=l(:label_assigned_to_me_issues)%></h3> -<% assigned_issues = Issue.visible.find(:all, - :conditions => ["assigned_to_id=? AND #{IssueStatus.table_name}.is_closed=?", user.id, false], +<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)</h3> + +<% assigned_issues = Issue.visible.open.find(:all, + :conditions => {:assigned_to_id => User.current.id}, :limit => 10, :include => [ :status, :project, :tracker, :priority ], :order => "#{Enumeration.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %> |