From 9cb68f7b296f4fc61b61c0cc3b8a099a116ee6f3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 11 Jul 2013 19:41:48 +0000 Subject: [PATCH] One query is enough. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12007 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/trackers/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/trackers/_form.html.erb b/app/views/trackers/_form.html.erb index 9039bba68..616f45482 100644 --- a/app/views/trackers/_form.html.erb +++ b/app/views/trackers/_form.html.erb @@ -22,7 +22,7 @@ <% IssueCustomField.all.each do |field| %> <% end %> @@ -43,7 +43,7 @@ <% if @projects.any? %>
<%= l(:label_project_plural) %> <%= render_project_nested_lists(@projects) do |p| - content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p)) + content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.to_a.include?(p), :id => nil) + ' ' + h(p)) end %> <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>

<%= check_all_links 'tracker_project_ids' %>

-- 2.39.5