]> source.dussan.org Git - redmine.git/commitdiff
Link to issues assigned to user or his groups (#25212).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 6 Jun 2017 22:01:09 +0000 (22:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 6 Jun 2017 22:01:09 +0000 (22:01 +0000)
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16626 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/users/show.html.erb

index b44ed6a3f832c08cd690e559f6fd518aa901bf5d..6d231b86d80f6aa068185b7daa5649a23f4e98c1 100644 (file)
@@ -26,7 +26,7 @@
 <h3><%=l(:label_issue_plural)%></h3>
 <ul>
   <li><%= link_to l(:label_assigned_issues),
-        issues_path(:set_filter => 1, :assigned_to_id => @user.id, :sort => 'priority:desc,updated_on:desc') %>:
+        issues_path(:set_filter => 1, :assigned_to_id => ([@user.id] + @user.group_ids).join("|"), :sort => 'priority:desc,updated_on:desc') %>:
       <%= Issue.visible.open.assigned_to(@user).count %>
   <li><%= link_to l(:label_reported_issues),
         issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id) %>: