Defect #15344

Default status always inserted to allowed statuses when changing status

Added by eyal R about 9 years ago. Updated about 9 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Category:Issues workflow
Target version:2.3.4
Resolution:Fixed Affected version:2.3.3


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.

Associated revisions

Revision 12277
Added by Jean-Philippe Lang about 9 years ago

Fixed that update_form always proposes the default status when updating an existing issue (#15344).


#1 Updated by Jean-Philippe Lang about 9 years ago

  • Category set to Issues workflow
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.3.4
  • Resolution set to Fixed

You're right, default status should be proposed for new issues only. It's fixed in r12277.

#2 Updated by Jean-Philippe Lang about 9 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF