Skip to content
代码片段 群组 项目
提交 3ac7203d 编辑于 作者: Sean McGivern's avatar Sean McGivern
浏览文件

Make Issues::BaseService match EE

We have `#allows_multiple_assignees?` defined in CE too, and `take(1)` appears
to be equivalent to `[0, 1]`.
上级 fe695ebd
No related branches found
No related tags found
无相关合并请求
......@@ -32,8 +32,9 @@ def execute_hooks(issue, action = 'open', old_associations: {})
def filter_assignee(issuable)
return if params[:assignee_ids].blank?
# The number of assignees is limited by one for GitLab CE
params[:assignee_ids] = params[:assignee_ids][0, 1]
unless issuable.allows_multiple_assignees?
params[:assignee_ids] = params[:assignee_ids].take(1)
end
assignee_ids = params[:assignee_ids].select { |assignee_id| assignee_can_read?(issuable, assignee_id) }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册