diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-07 21:08:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-07 21:08:08 +0300 |
commit | 59f37a99433dbdc3093e06f0f57beff171bae5d4 (patch) | |
tree | 61f7e6c66fd79fda1ec46b223225012241eff3e7 /app/models/todo.rb | |
parent | fa4473a48706d074217f4ffc8d183cf630af1833 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r-- | app/models/todo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb index 634fa9e7eda..f2fa0df852a 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -94,7 +94,7 @@ class Todo < ApplicationRecord # # Returns an `ActiveRecord::Relation`. def for_group_ids_and_descendants(group_ids) - groups = Group.groups_including_descendants_by(group_ids) + groups = Group.where(id: group_ids).self_and_descendants from_union( [ |