From: Jean-Philippe Lang Date: Sun, 20 Jan 2008 19:45:08 +0000 (+0000) Subject: Fixed: custom fields empty on issue/edit (broken by r1086). X-Git-Tag: 0.7.0-RC1~197 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59c5d995c339f726f7c6249d543a2b2a2a7bc061;p=redmine.git Fixed: custom fields empty on issue/edit (broken by r1086). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1089 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 @@
-<% 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 %>