プロジェクト

全般

プロフィール

Vote #78802

完了

Cannot clear all watchers when copying an issue

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

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

0%

予定工数:
category_id:
2
version_id:
134
issue_org_id:
26880
author_id:
332
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
132
ステータス-->[Closed]

説明

We can select/deselect watchers when we create an issue by copying existing issue (#10460).

But if you deselect all watchers, the original watchers are preselected in the newly created issue despite the exception that the copied issue has no watcher.

Steps to reproduce:

  1. The original issue has 2 watchers.

!{width: 800px; border: 1px solid #ccc;}.01-copy-source@2x.png!

  1. Click "Copy" and deselect all watcher.

!{width: 800px; border: 1px solid #ccc;}.02-deselect-watchers@2x.png!

  1. The newly created issue should not have any watchers but all watchers are preserved.

!{width: 800px; border: 1px solid #ccc;}.03-watchers-are-preserved@2x.png!


journals

--------------------------------------------------------------------------------
Hi Go MAEDA!

You have to change this row in app/controllers/issue_controller:

<pre>
row:493 - @copy_watchers = User.current.allowed_to?(:add_issue_watchers, @project)
+ @copy_watchers = params[:copy_watchers].present? || request.get?
</pre>

I think it will be solve your problem.
Tibor
--------------------------------------------------------------------------------
It seems caused by #10460.
--------------------------------------------------------------------------------
I think the attached patch will solve this problem.
this patch compatible with latest trunk (r17055).
--------------------------------------------------------------------------------
Fix applied with a slightly different solution.
Thanks for pointing this out.
--------------------------------------------------------------------------------


related_issues

relates,Closed,10460,Option to copy watchers when copying issues

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0