From 59c5d995c339f726f7c6249d543a2b2a2a7bc061 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 20 Jan 2008 19:45:08 +0000 Subject: [PATCH] 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 --- app/views/issues/_form_custom_fields.rhtml | 8 +++++--- 1 file 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 @@
-<% 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 %>