Project

General

Profile

Actions

Defect #15344

closed

Default status always inserted to allowed statuses when changing status

Added by eyal R over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues workflow
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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.

Actions

Also available in: Atom PDF