summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-11 07:09:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-11 07:09:11 +0000
commit11e8dc263f9ab8316ed152c2ff6715068cd31c14 (patch)
tree7cb0bb6f1aec2c3335d1efcab28e08c2bd241df4 /app/controllers
parentb88cac254e9768012789c9dbb929cc7256ad516d (diff)
downloadredmine-11e8dc263f9ab8316ed152c2ff6715068cd31c14.tar.gz
redmine-11e8dc263f9ab8316ed152c2ff6715068cd31c14.zip
When create by copying the issue, status can not be changed to default (#19553).
git-svn-id: http://svn.redmine.org/redmine/trunk@14158 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issues_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 48608f7a7..8bc326eaa 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -425,7 +425,7 @@ class IssuesController < ApplicationController
@issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date?
if attrs = params[:issue].deep_dup
- if params[:was_default_status] == attrs[:status_id]
+ if action_name == 'new' && params[:was_default_status] == attrs[:status_id]
attrs.delete(:status_id)
end
@issue.safe_attributes = attrs