diff options
-rw-r--r-- | app/views/issues/_form_custom_fields.rhtml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/issues/_form_custom_fields.rhtml b/app/views/issues/_form_custom_fields.rhtml index 291b5d4de..e5a98e30e 100644 --- a/app/views/issues/_form_custom_fields.rhtml +++ b/app/views/issues/_form_custom_fields.rhtml @@ -1,9 +1,11 @@ <div class="splitcontentleft"> -<% values.each_with_index do |value, i| %> - <p><%= custom_field_tag_with_label value %></p> - <% if i >= values.size / 2 - 1 %> +<% i = 1 %> +<% for @custom_value in values %> + <p><%= custom_field_tag_with_label @custom_value %></p> + <% if i >= values.size / 2 %> </div><div class="splitcontentright"> <% end %> + <% i += 1 %> <% end %> </div> <div style="clear:both;"> </div> |