プロジェクト

全般

プロフィール

Vote #81756

未完了

show in assignable user when he/she is not member of that project

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

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

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
36368
author_id:
147409
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

When moving an issue to another project that author of issue is not member of that, in edit form 'author' shown as an assignable user.

This patch can fix the error.

Index: app/models/issue.rb
<+>UTF-8
===================================================================
diff --git a/app/models/issue.rb b/app/models/issue.rb
--- a/app/models/issue.rb   (revision ec859e41d689ee3432113c3bd74ba48d060c9a2f)
+++ b/app/models/issue.rb   (date 1640777418920)
@@ -975,7 +975,7 @@
     return [] if project.nil?
 
     users = project.assignable_users(tracker).to_a
-    users << author if author && author.active?
+    users << author if author && author.active? && project.users.include?(author)
     if assigned_to_id_was.present? && assignee = Principal.find_by_id(assigned_to_id_was)
       users << assignee
     end


journals

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

--------------------------------------------------------------------------------
I think it is the expected behavior introduced in r4240. After r4240, the author of an issue always can be an assignee of the issue even if the user is not a project member.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> I think it is the expected behavior introduced in r4240. After r4240, the author of an issue always can be an assignee of the issue even if the user is not a project member.

Thanks. What about this one? If issue was visible by author, it's reasonable to be one of assignable users.
--------------------------------------------------------------------------------


related_issues

relates,Closed,4199,Reassign back to original author from an SCM commit

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

  • カテゴリIssues_2 にセット

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

いいね!0
いいね!0