fix_project_with_empty_custom_fields.patch

Alexander Meindl, 2020-08-23 10:57

Download (697 Bytes)

View differences:

app/views/projects/show.html.erb
31 31
    <%= textilizable @project.description %>
32 32
  </div>
33 33
  <% end %>
34
  <% if @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %>
34
  <% if @project.homepage.present? || @project.visible_custom_field_values.any? { |o| o.value.present? } %>
35 35
  <ul>
36 36
  <% unless @project.homepage.blank? %>
37 37
    <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>