Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/issuable/bulk_update_service.rb')
-rw-r--r--app/services/issuable/bulk_update_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/issuable/bulk_update_service.rb b/app/services/issuable/bulk_update_service.rb
index 238f5ebddae..30444fa3938 100644
--- a/app/services/issuable/bulk_update_service.rb
+++ b/app/services/issuable/bulk_update_service.rb
@@ -68,9 +68,10 @@ module Issuable
end
def find_issuables(parent, model_class, ids)
- if parent.is_a?(Project)
+ case parent
+ when Project
projects = parent
- elsif parent.is_a?(Group)
+ when Group
projects = parent.all_projects
else
return