summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-07 12:10:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-07 12:10:06 +0000
commita6c61c8c2e21e803bceb77bce25d2b5705220be6 (patch)
tree6acf23b8ad0da2570dfae3904bacfe78405c8ac5 /app
parenteef502388621e18f2ae424bfc499747a3a86e3e7 (diff)
downloadredmine-a6c61c8c2e21e803bceb77bce25d2b5705220be6.tar.gz
redmine-a6c61c8c2e21e803bceb77bce25d2b5705220be6.zip
Preload :roles for displaying user memberships (#23519).
git-svn-id: http://svn.redmine.org/redmine/trunk@16156 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/principal_memberships/_index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/principal_memberships/_index.html.erb b/app/views/principal_memberships/_index.html.erb
index e43419072..508e2e271 100644
--- a/app/views/principal_memberships/_index.html.erb
+++ b/app/views/principal_memberships/_index.html.erb
@@ -1,4 +1,4 @@
-<% memberships = principal.memberships.preload(:member_roles => :role).sorted_by_project.to_a %>
+<% memberships = principal.memberships.preload(:member_roles, :roles).sorted_by_project.to_a %>
<p><%= link_to l(:label_add_projects), new_principal_membership_path(principal), :remote => true, :class => "icon icon-add" %></p>