mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 08:56:24 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user