From b5574321f9a9911d4b72fd382f5d750ec7689590 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 04:25:14 +0000 Subject: [PATCH] code layout clean up IssuesController#bulk_edit git-svn-id: http://svn.redmine.org/redmine/trunk@19151 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(:&) -- 2.39.5