##// END OF EJS Templates
Fixed: error when changing tracker on the new issue form (#4345)....
Jean-Philippe Lang -
r3011:8f33c6589d67
parent child
Show More
@@ -436,11 +436,11 class IssuesController < ApplicationController
436 436 end
437 437
438 438 def update_form
439 if params[:id]
440 @issue = @project.issues.visible.find(params[:id])
441 else
439 if params[:id].blank?
442 440 @issue = Issue.new
443 441 @issue.project = @project
442 else
443 @issue = @project.issues.visible.find(params[:id])
444 444 end
445 445 @issue.attributes = params[:issue]
446 446 @allowed_statuses = ([@issue.status] + @issue.status.find_new_statuses_allowed_to(User.current.roles_for_project(@project), @issue.tracker)).uniq
General Comments 0
You need to be logged in to leave comments. Login now