]> source.dussan.org Git - redmine.git/commitdiff
Fixed one query per member on project settings.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 11 Jul 2013 19:57:15 +0000 (19:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 11 Jul 2013 19:57:15 +0000 (19:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12008 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/settings/_members.html.erb

index 87c8f8be313cca52046f2edec8c6ddc1eac4dc93..8429a426e91c8577ac8402e0c9f45c0f89d543d8 100644 (file)
@@ -1,6 +1,6 @@
 <%= error_messages_for 'member' %>
 <% roles = Role.find_all_givable
-   members = @project.member_principals.includes(:roles, :principal).all.sort %>
+   members = @project.member_principals.includes(:member_roles, :roles, :principal).all.sort %>
 
 <div class="splitcontentleft">
 <% if members.any? %>