From b0e1f8d8f38bd538d668633f0a4ce5c8e67feae1 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 14 Feb 2022 08:08:47 +0000 Subject: [PATCH] Reduce database queries when rendering Custom fields box in the project settings tab (#36505). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21411 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/settings/_issues.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/projects/settings/_issues.html.erb b/app/views/projects/settings/_issues.html.erb index a0f0c14d5..4fe977fb8 100644 --- a/app/views/projects/settings/_issues.html.erb +++ b/app/views/projects/settings/_issues.html.erb @@ -21,9 +21,10 @@ <% if User.current.admin? %>
<%= link_to l(:label_administration), custom_fields_path, :class => "icon icon-settings" %>
<% end %> + <% all_issue_custom_field_ids = @project.all_issue_custom_fields.ids %> <% @issue_custom_fields.each do |custom_field| %>