From a18c719fcc9cf2bf44bed59944ae1ad349dce970 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 10 Jan 2015 13:03:52 +0000 Subject: 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 --- app/views/projects/show.html.erb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/views/projects') 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 @@
  • <%=l(:label_subproject_plural)%>: <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %>
  • <% end %> - <% @project.visible_custom_field_values.each do |custom_value| %> - <% if !custom_value.value.blank? %> -
  • <%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %>
  • - <% end %> + <% render_custom_field_values(@project) do |custom_field, formatted| %> +
  • <%= custom_field.name %>: <%= formatted %>
  • <% end %> -- cgit v1.2.3