diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb index f5590e9bc..ee7585add 100644 --- a/app/views/issues/bulk_edit.html.erb +++ b/app/views/issues/bulk_edit.html.erb @@ -94,13 +94,6 @@

<% end %> -<% @custom_fields.each do |custom_field| %> -

- - <%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %> -

-<% end %> - <% if @copy && Setting.link_copied_issue == 'ask' %>

@@ -190,6 +183,26 @@ <% end %> + +<% if @custom_fields.present? %> +

+
+ <% i = 0 %> + <% split_on = (@custom_fields.size / 2.0).ceil - 1 %> + <% @custom_fields.each do |custom_field| %> +

+ + <%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %> +

+ <% if i == split_on %> +
+ <% end %> + <% i += 1 %> + <% end %> +
+
+<% end %> +