From b4c091d063d0205b1989cea7b643c9b04ba96ccc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 18 Aug 2015 07:05:25 +0000 Subject: [PATCH] Don't render empty divs when there are no custom fields on the issue form (#20501). git-svn-id: http://svn.redmine.org/redmine/trunk@14512 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_form_custom_fields.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/issues/_form_custom_fields.html.erb b/app/views/issues/_form_custom_fields.html.erb index 6182c28f6..2e12c00e8 100644 --- a/app/views/issues/_form_custom_fields.html.erb +++ b/app/views/issues/_form_custom_fields.html.erb @@ -1,4 +1,5 @@ <% custom_field_values = @issue.editable_custom_field_values %> +<% if custom_field_values.present? %>
<% i = 0 %> @@ -12,3 +13,4 @@ <% end -%>
+<% end %>