]> source.dussan.org Git - redmine.git/commitdiff
Do not show list for custom fields without list entry on project overview (#33889).
authorGo MAEDA <maeda@farend.jp>
Tue, 25 Aug 2020 07:57:51 +0000 (07:57 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 25 Aug 2020 07:57:51 +0000 (07:57 +0000)
Patch by Alexander Meindl.

git-svn-id: http://svn.redmine.org/redmine/trunk@19983 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/show.html.erb

index de99eeabee4f1f0c75ab6deeeb9b28827f9ea929..c8745be14888a7d7f5725525edae0620bcad7c39 100644 (file)
@@ -31,7 +31,7 @@
     <%= textilizable @project.description %>
   </div>
   <% end %>
-  <% if @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %>
+  <% if @project.homepage.present? || @project.visible_custom_field_values.any? { |o| o.value.present? } %>
   <ul>
   <% unless @project.homepage.blank? %>
     <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>