diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-07-11 19:41:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-07-11 19:41:48 +0000 |
commit | 9cb68f7b296f4fc61b61c0cc3b8a099a116ee6f3 (patch) | |
tree | 271da55798045ac51f253348eca8ae92405bb22f /app/views/trackers | |
parent | 80b1a73ccf5b536db55ffe4e88833e1d4c78bccb (diff) | |
download | redmine-9cb68f7b296f4fc61b61c0cc3b8a099a116ee6f3.tar.gz redmine-9cb68f7b296f4fc61b61c0cc3b8a099a116ee6f3.zip |
One query is enough.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12007 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers')
-rw-r--r-- | app/views/trackers/_form.html.erb | 4 |
1 files 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 @@ <label><%= l(:label_custom_field_plural) %></label> <% IssueCustomField.all.each do |field| %> <label class="block"> - <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.include?(field) %> + <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.to_a.include?(field) %> <%=h field.name %> </label> <% end %> @@ -43,7 +43,7 @@ <% if @projects.any? %> <fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend> <%= 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) %> <p><%= check_all_links 'tracker_project_ids' %></p> |