diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-27 16:46:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-27 16:46:52 +0000 |
commit | fbce1b01ef9426243d9119a855c333435d5c015f (patch) | |
tree | 73c0d3e971210e89e7f674f0c8a7cd5bc2956511 /app/views/projects/settings/_members.html.erb | |
parent | 930b63718f6c574a4d026c3114ecff87a225fd5c (diff) | |
download | redmine-fbce1b01ef9426243d9119a855c333435d5c015f.tar.gz redmine-fbce1b01ef9426243d9119a855c333435d5c015f.zip |
Preload members project to prevent multiple cache hits.
git-svn-id: http://svn.redmine.org/redmine/trunk@16898 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/settings/_members.html.erb')
-rw-r--r-- | app/views/projects/settings/_members.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb index 39f50c105..ac8769fc6 100644 --- a/app/views/projects/settings/_members.html.erb +++ b/app/views/projects/settings/_members.html.erb @@ -1,4 +1,4 @@ -<% members = @project.memberships.sorted.to_a %> +<% members = @project.memberships.preload(:project).sorted.to_a %> <p><%= link_to l(:label_member_new), new_project_membership_path(@project), :remote => true, :class => "icon icon-add" %></p> |