From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 04:25:14 +0000 (+0000) Subject: code layout clean up IssuesController#bulk_edit X-Git-Tag: 4.2.0~1488 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b5574321f9a9911d4b72fd382f5d750ec7689590;p=redmine.git code layout clean up IssuesController#bulk_edit git-svn-id: http://svn.redmine.org/redmine/trunk@19151 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index eabd5f2e6..1c3d8cec2 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -299,8 +299,9 @@ class IssuesController < ApplicationController end end @values_by_custom_field.delete_if {|k,v| v.blank?} - - @custom_fields = edited_issues.map{|i| i.editable_custom_fields}.reduce(:&).select {|field| field.format.bulk_edit_supported} + @custom_fields = + edited_issues.map{|i| i.editable_custom_fields}. + reduce(:&).select {|field| field.format.bulk_edit_supported} @assignables = target_projects.map(&:assignable_users).reduce(:&) @versions = target_projects.map {|p| p.shared_versions.open}.reduce(:&) @categories = target_projects.map {|p| p.issue_categories}.reduce(:&)