summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index dfec893d6..84ff8fd23 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -225,7 +225,11 @@ class IssuesController < ApplicationController
end
target_projects ||= @projects
- @available_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
+ if @copy
+ @available_statuses = [IssueStatus.default]
+ else
+ @available_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
+ end
@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(:&)