diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-13 19:47:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-13 19:47:29 +0000 |
commit | 9b08365ea58b0e4839c9c306f57970cbfe26b0b0 (patch) | |
tree | 28070732fb9f310944941d7d38edb449e2fbf41b /app/views/custom_fields | |
parent | 9d1d3b825f1d4c898415c6ec372ae0c8b81e7f49 (diff) | |
download | redmine-9b08365ea58b0e4839c9c306f57970cbfe26b0b0.tar.gz redmine-9b08365ea58b0e4839c9c306f57970cbfe26b0b0.zip |
Make it work for 0 projects (#24587).
git-svn-id: http://svn.redmine.org/redmine/trunk@16070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields')
-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 0a5ff3ee1..dfc458cdc 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_fields_projects_count[custom_field.id]) 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] || 0) 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') %> |