プロジェクト

全般

プロフィール

Vote #76262

完了

When create by copying the issue, status can not be changed to default

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

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

0%

予定工数:
category_id:
2
version_id:
94
issue_org_id:
19553
author_id:
95681
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
92
ステータス-->[Closed]

説明

If create a issue in the following procedure, the status is not correctly registered.

  • Copy an issue. (At this point, the status is "Assigned")
  • Change to other status. (Change to "New")
  • Pressed to the Create button. Issue is created.
  • Created issue status is registered in the pre-changed status. (Registered status is "Assigned")

journals

I have confirmed the behavior.
It seems to be caused by source:trunk/app/controllers/issues_controller.rb@13535#L430, introduced in r13535.

--------------------------------------------------------------------------------
Workaround for this issue:

<pre><code class="diff">
Index: app/controllers/issues_controller.rb
===================================================================
--- app/controllers/issues_controller.rb (revision 14155)
+++ app/controllers/issues_controller.rb (working copy)
@@ -425,7 +425,7 @@
@issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date?

if attrs = params[:issue].deep_dup
- if params[:was_default_status] == attrs[:status_id]
+ if action_name == 'new' && params[:was_default_status] == attrs[:status_id]
attrs.delete(:status_id)
end
@issue.safe_attributes = attrs
</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fix committed in r14158 with a test.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,19565,problem with the ticket situation copied, the situation this resetting

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン3.0.2_94 にセット

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

いいね!0
いいね!0