From 0a4d2affd8f98351571e6b41936e59aa5074a5d8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 11 Jul 2013 19:57:15 +0000 Subject: [PATCH] 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 --- app/views/projects/settings/_members.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? %> -- 2.39.5