summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-09 09:39:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-09 09:39:27 +0000
commitea307619beceb51d6b9229987480e051f53b67d6 (patch)
treec207f141fbcb94e6bdd5449e3806afe0f322dfde /app/controllers/issues_controller.rb
parent6d62ab64e6aa2eda3a7da481779821281bde16d9 (diff)
downloadredmine-ea307619beceb51d6b9229987480e051f53b67d6.tar.gz
redmine-ea307619beceb51d6b9229987480e051f53b67d6.zip
Fixed that improper statuses are proposed when changing status before tracker on the issue form (#10619).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9378 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 5621fbbe8..dfec893d6 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -348,8 +348,6 @@ private
# from the params
# TODO: Refactor, not everything in here is needed by #edit
def update_issue_from_params
- @allowed_statuses = @issue.new_statuses_allowed_to(User.current)
- @priorities = IssuePriority.active
@edit_allowed = User.current.allowed_to?(:edit_issues, @project)
@time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
@time_entry.attributes = params[:time_entry]
@@ -371,6 +369,8 @@ private
end
end
@issue.safe_attributes = issue_attributes
+ @priorities = IssuePriority.active
+ @allowed_statuses = @issue.new_statuses_allowed_to(User.current)
true
end