]> source.dussan.org Git - redmine.git/commitdiff
Preload :roles for displaying user memberships (#23519).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jan 2017 12:10:06 +0000 (12:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jan 2017 12:10:06 +0000 (12:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16156 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/principal_memberships/_index.html.erb

index e434190727cd43325e71c5d82873c72ab3519d5e..508e2e271b92442a2e83771f9c2baeb3d5a8c51b 100644 (file)
@@ -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>