diff --git a/app/views/issues/_form_custom_fields.rhtml b/app/views/issues/_form_custom_fields.rhtml index 291b5d4d..e5a98e30 100644 --- a/app/views/issues/_form_custom_fields.rhtml +++ b/app/views/issues/_form_custom_fields.rhtml @@ -1,9 +1,11 @@
-<% values.each_with_index do |value, i| %> -

<%= custom_field_tag_with_label value %>

- <% if i >= values.size / 2 - 1 %> +<% i = 1 %> +<% for @custom_value in values %> +

<%= custom_field_tag_with_label @custom_value %>

+ <% if i >= values.size / 2 %>
<% end %> + <% i += 1 %> <% end %>