diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-07 12:10:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-07 12:10:06 +0000 |
commit | a6c61c8c2e21e803bceb77bce25d2b5705220be6 (patch) | |
tree | 6acf23b8ad0da2570dfae3904bacfe78405c8ac5 /app | |
parent | eef502388621e18f2ae424bfc499747a3a86e3e7 (diff) | |
download | redmine-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.erb | 2 |
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> |