1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-04-06 07:51:40 +00:00

code layout clean up IssuesController#bulk_edit

git-svn-id: http://svn.redmine.org/redmine/trunk@19151 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-22 04:25:14 +00:00
parent e8343c1f9d
commit b5574321f9

View File

@ -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(:&)