Default status always inserted to allowed statuses when changing status
|Assignee:||Jean-Philippe Lang||% Done:|
In IssuesController , "build_new_issue_from_params" method is called when status is changed. (set in before_filter for update_form action)
build_new_issue_from_params has the following line:
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, true)
the second parameter , being always true , causes IssueStatus.default to be pushed to the allowed_statuses.
I think this is a bug.
Fixed that update_form always proposes the default status when updating an existing issue (#15344).