From: Jean-Philippe Lang Date: Thu, 11 Jul 2013 19:57:15 +0000 (+0000) Subject: Fixed one query per member on project settings. X-Git-Tag: 2.4.0~216 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a4d2affd8f98351571e6b41936e59aa5074a5d8;p=redmine.git Fixed one query per member on project settings. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12008 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb index 87c8f8be3..8429a426e 100644 --- a/app/views/projects/settings/_members.html.erb +++ b/app/views/projects/settings/_members.html.erb @@ -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 %>
<% if members.any? %>