summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-10 13:03:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-10 13:03:52 +0000
commita18c719fcc9cf2bf44bed59944ae1ad349dce970 (patch)
tree3e9f836b1c3edda9f6decb095509e58e1e02c01f /app/views/projects
parenta77d884157439c226342e789f13bd6bfe8dd4227 (diff)
downloadredmine-a18c719fcc9cf2bf44bed59944ae1ad349dce970.tar.gz
redmine-a18c719fcc9cf2bf44bed59944ae1ad349dce970.zip
Fixed: Custom field is rendered, even if its value is empty (for multiple) (#18654).
git-svn-id: http://svn.redmine.org/redmine/trunk@13864 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/show.html.erb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index b4b563a37..addcfdf62 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -31,10 +31,8 @@
<li><span class="label"><%=l(:label_subproject_plural)%>:</span>
<%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
<% end %>
- <% @project.visible_custom_field_values.each do |custom_value| %>
- <% if !custom_value.value.blank? %>
- <li><span class="label"><%=h custom_value.custom_field.name %>:</span> <%=h show_value(custom_value) %></li>
- <% end %>
+ <% render_custom_field_values(@project) do |custom_field, formatted| %>
+ <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
<% end %>
</ul>