Project

General

Profile

Actions

Defect #15344

closed

Default status always inserted to allowed statuses when changing status

Added by eyal R about 11 years ago. Updated about 11 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 #1

Updated by Jean-Philippe Lang about 11 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.

Actions #2

Updated by Jean-Philippe Lang about 11 years ago

  • Status changed from Resolved to Closed

Merged.

Actions

Also available in: Atom PDF