summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_form_custom_fields.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 19:45:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 19:45:08 +0000
commit59c5d995c339f726f7c6249d543a2b2a2a7bc061 (patch)
treec0255d9019bfa56cd3ec2c980575710697a3ff7c /app/views/issues/_form_custom_fields.rhtml
parentdf99d8f30801792560fc955ac36c2801e6aa5ff5 (diff)
downloadredmine-59c5d995c339f726f7c6249d543a2b2a2a7bc061.tar.gz
redmine-59c5d995c339f726f7c6249d543a2b2a2a7bc061.zip
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
Diffstat (limited to 'app/views/issues/_form_custom_fields.rhtml')
-rw-r--r--app/views/issues/_form_custom_fields.rhtml8
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>