Fixed that the bulk edit form shows additional custom fields (#19163).

git-svn-id: http://svn.redmine.org/redmine/trunk@14152 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-03-21 09:27:09 +00:00
parent 1448f1731f
commit f5668d0650

View File

@@ -229,7 +229,7 @@ class IssuesController < ApplicationController
else
@available_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
end
@custom_fields = @issue..map{|p|p.all_issue_custom_fields.visible}.reduce(:&)
@custom_fields = @issues.map{|i|i.editable_custom_fields}.reduce(:&)
@assignables = target_projects.map(&:assignable_users).reduce(:&)
@trackers = target_projects.map(&:trackers).reduce(:&)
@versions = target_projects.map {|p| p.shared_versions.open}.reduce(:&)