プロジェクト

全般

プロフィール

Vote #74595

完了

Default status always inserted to allowed statuses when changing status

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues workflow_41
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
41
version_id:
74
issue_org_id:
15344
author_id:
44924
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
73
ステータス-->[Closed]

説明

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.


journals

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

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0