Only show statuses that can be applied to all issues on the bulk edit form (#10181).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-11 12:03:48 +00:00
parent 004968caf3
commit 2ec55c5337
2 changed files with 21 additions and 1 deletions

View File

@@ -229,7 +229,7 @@ class IssuesController < ApplicationController
end
target_projects ||= @projects
@available_statuses = target_projects.map{|p|Workflow.available_statuses(p)}.reduce(:&)
@available_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
@custom_fields = target_projects.map{|p|p.all_issue_custom_fields}.reduce(:&)
@assignables = target_projects.map(&:assignable_users).reduce(:&)
@trackers = target_projects.map(&:trackers).reduce(:&)