From: Go MAEDA Date: Mon, 14 Feb 2022 08:08:47 +0000 (+0000) Subject: Reduce database queries when rendering Custom fields box in the project settings... X-Git-Tag: 5.0.0~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0e1f8d8f38bd538d668633f0a4ce5c8e67feae1;p=redmine.git 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 --- 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| %>