summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-11-09 11:19:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-11-09 11:19:06 +0000
commitbff12254acf053d33b6cbcdcfea7c00da7c21f99 (patch)
tree7dd13801da8355bd292c74d186e7c5b24b4f4581 /app/views/issues
parentd89c968bb116e525ca5c8597037086b5b565dadf (diff)
downloadredmine-bff12254acf053d33b6cbcdcfea7c00da7c21f99.tar.gz
redmine-bff12254acf053d33b6cbcdcfea7c00da7c21f99.zip
Custom fields in issue form - splitting is incorrect (#15227).
git-svn-id: http://svn.redmine.org/redmine/trunk@12251 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/_form_custom_fields.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/issues/_form_custom_fields.html.erb b/app/views/issues/_form_custom_fields.html.erb
index 4da98eb13..6182c28f6 100644
--- a/app/views/issues/_form_custom_fields.html.erb
+++ b/app/views/issues/_form_custom_fields.html.erb
@@ -1,8 +1,9 @@
+<% custom_field_values = @issue.editable_custom_field_values %>
<div class="splitcontent">
<div class="splitcontentleft">
<% i = 0 %>
-<% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %>
-<% @issue.editable_custom_field_values.each do |value| %>
+<% split_on = (custom_field_values.size / 2.0).ceil - 1 %>
+<% custom_field_values.each do |value| %>
<p><%= custom_field_tag_with_label :issue, value, :required => @issue.required_attribute?(value.custom_field_id) %></p>
<% if i == split_on -%>
</div><div class="splitcontentright">