diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-14 05:45:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-14 05:45:16 +0000 |
commit | 09375960d69dcca6dafe4b126b77994f523efba8 (patch) | |
tree | 263680473e25b24e4e6410d258bf3ac902a137a0 /app/controllers/issues_controller.rb | |
parent | 354e09811b5d044afb6152efa2cdd38bdeac60a4 (diff) | |
download | redmine-09375960d69dcca6dafe4b126b77994f523efba8.tar.gz redmine-09375960d69dcca6dafe4b126b77994f523efba8.zip |
When copying issues, let the status be changed to default or left unchanged.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9404 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 6 |
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(:&) |