diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-15 19:59:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-15 19:59:19 +0000 |
commit | 71c61f4996aed44f3b89d66e5a2a0e86b32f3888 (patch) | |
tree | 6e323b5214cbf9179c1cee288bc9486ef2565ac6 /app/controllers | |
parent | 8910b7c605833255df8e7d04f73b3b5ddfc7342f (diff) | |
download | redmine-71c61f4996aed44f3b89d66e5a2a0e86b32f3888.tar.gz redmine-71c61f4996aed44f3b89d66e5a2a0e86b32f3888.zip |
Fixed that update_form always proposes the default status when updating an existing issue (#15344).
git-svn-id: http://svn.redmine.org/redmine/trunk@12277 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 0ff8ded82..32c4d1f77 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -426,7 +426,7 @@ class IssuesController < ApplicationController @issue.safe_attributes = params[:issue] @priorities = IssuePriority.active - @allowed_statuses = @issue.new_statuses_allowed_to(User.current, true) + @allowed_statuses = @issue.new_statuses_allowed_to(User.current, @issue.new_record?) @available_watchers = (@issue.project.users.sort + @issue.watcher_users).uniq end |