diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-13 19:46:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-13 19:46:31 +0000 |
commit | 9d1d3b825f1d4c898415c6ec372ae0c8b81e7f49 (patch) | |
tree | 12ec34ec66f76068ab33afdf8954354b8f3eea23 /app/views | |
parent | 7b7a84c93a4fe57fdd14ec4729240939714ca412 (diff) | |
download | redmine-9d1d3b825f1d4c898415c6ec372ae0c8b81e7f49.tar.gz redmine-9d1d3b825f1d4c898415c6ec372ae0c8b81e7f49.zip |
Improve custom fields list performance (#24587).
Patch by Thomas Löber.
git-svn-id: http://svn.redmine.org/redmine/trunk@16069 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/custom_fields/_index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/custom_fields/_index.html.erb b/app/views/custom_fields/_index.html.erb index 7a5d37283..0a5ff3ee1 100644 --- a/app/views/custom_fields/_index.html.erb +++ b/app/views/custom_fields/_index.html.erb @@ -18,7 +18,7 @@ <td><%= checked_image custom_field.is_required? %></td> <% if tab[:name] == 'IssueCustomField' %> <td><%= checked_image custom_field.is_for_all? %></td> - <td><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td> + <td><%= l(:label_x_projects, :count => @custom_fields_projects_count[custom_field.id]) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td> <% end %> <td class="buttons"> <%= reorder_handle(custom_field, :url => custom_field_path(custom_field), :param => 'custom_field') %> |