From 305c015141150e5cb404fbf290cbb36cb6471376 Mon Sep 17 00:00:00 2001 From: Ryo Ito Date: Fri, 30 Jun 2023 03:05:25 +0000 Subject: Patch for 71750_improved_tracker_selection --- .../_visibility_by_tracker_selector.html.erb | 12 ++++++------ public/stylesheets/application.css | 12 ++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/views/custom_fields/_visibility_by_tracker_selector.html.erb b/app/views/custom_fields/_visibility_by_tracker_selector.html.erb index 289849dbb..2d9061529 100644 --- a/app/views/custom_fields/_visibility_by_tracker_selector.html.erb +++ b/app/views/custom_fields/_visibility_by_tracker_selector.html.erb @@ -1,11 +1,11 @@ -
<%= toggle_checkboxes_link("#custom_field_tracker_ids input[type=checkbox]") %><%=l(:label_tracker_plural)%> +
<%= toggle_checkboxes_link("#custom_field_tracker_ids input[type=checkbox]") %><%=l(:label_tracker_plural)%> <% tracker_ids = @custom_field.tracker_ids %> <% Tracker.sorted.each do |tracker| %> - <%= check_box_tag "custom_field[tracker_ids][]", - tracker.id, - tracker_ids.include?(tracker.id), - :id => "custom_field_tracker_ids_#{tracker.id}" %> -