Skip to content
Snippets Groups Projects
Commit 8f33c658 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Fixed: error when changing tracker on the new issue form (#4345).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3125 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 719cd7cf
No related branches found
No related tags found
No related merge requests found
......@@ -436,11 +436,11 @@ class IssuesController < ApplicationController
end
def update_form
if params[:id]
@issue = @project.issues.visible.find(params[:id])
else
if params[:id].blank?
@issue = Issue.new
@issue.project = @project
else
@issue = @project.issues.visible.find(params[:id])
end
@issue.attributes = params[:issue]
@allowed_statuses = ([@issue.status] + @issue.status.find_new_statuses_allowed_to(User.current.roles_for_project(@project), @issue.tracker)).uniq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment