Cannot clear all watchers when copying an issue
|Assignee:||Jean-Philippe Lang||% Done:|
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.
2. Click "Copy" and deselect all watcher.
3. The newly created issue should not have any watchers but all watchers are preserved.
#2 Updated by Tibor Kreiter over 1 year ago
Hi Go MAEDA!
You have to change this row in app/controllers/issue_controller:
row:493 - @copy_watchers = User.current.allowed_to?(:add_issue_watchers, @project) + @copy_watchers = params[:copy_watchers].present? || request.get?
I think it will be solve your problem.