diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-02 21:16:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-02 21:16:12 +0000 |
commit | b3f377dfc4712e81e4e63fb35f865930469bd541 (patch) | |
tree | 53c9465ef0e4d71a3df27e97fdc1c02b06a9ee97 /app/views/projects | |
parent | 4f4a019bebd03ffc0109a7004ae7c6bc0e562978 (diff) | |
download | redmine-b3f377dfc4712e81e4e63fb35f865930469bd541.tar.gz redmine-b3f377dfc4712e81e4e63fb35f865930469bd541.zip |
Prevents one query per tracker.
git-svn-id: http://svn.redmine.org/redmine/trunk@13543 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index 7828bc1b4..a670a03b6 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -45,7 +45,7 @@ <fieldset class="box tabular" id="project_trackers"><legend><%=l(:label_tracker_plural)%></legend> <% @trackers.each do |tracker| %> <label class="floating"> - <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.include?(tracker), :id => nil %> + <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.to_a.include?(tracker), :id => nil %> <%=h tracker %> </label> <% end %> |