diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-09 11:19:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-09 11:19:06 +0000 |
commit | bff12254acf053d33b6cbcdcfea7c00da7c21f99 (patch) | |
tree | 7dd13801da8355bd292c74d186e7c5b24b4f4581 /app/views/issues | |
parent | d89c968bb116e525ca5c8597037086b5b565dadf (diff) | |
download | redmine-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.erb | 5 |
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"> |