Project

General

Profile

Feature #36505 ยป reduce-database-query-project-settings.patch

Go MAEDA, 2022-01-23 13:55

View differences:

app/views/projects/settings/_issues.html.erb
21 21
  <% if User.current.admin? %>
22 22
    <div class="contextual"><%= link_to l(:label_administration), custom_fields_path, :class => "icon icon-settings" %></div>
23 23
  <% end %>
24
  <% all_issue_custom_field_ids = @project.all_issue_custom_fields.ids %>
24 25
  <% @issue_custom_fields.each do |custom_field| %>
25 26
    <label class="floating">
26
      <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
27
      <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (all_issue_custom_field_ids.include? custom_field.id),
27 28
          :disabled => (custom_field.is_for_all? ? "disabled" : nil),
28 29
          :id => nil %>
29 30
      <%= custom_field_name_tag(custom_field) %>
    (1-1/1)