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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-18 12:08:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-18 12:08:30 +0300
commit5ccb67600c63549774a28811d177dd673e6dd4d0 (patch)
treec8af595d48607c660564fd89d77b47c3384501af /app/models/work_items
parent6a201406143969f12cb9e4687a79ce9316420152 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/work_items')
-rw-r--r--app/models/work_items/widgets/hierarchy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/work_items/widgets/hierarchy.rb b/app/models/work_items/widgets/hierarchy.rb
index e4367bc8ff1..930aced8ace 100644
--- a/app/models/work_items/widgets/hierarchy.rb
+++ b/app/models/work_items/widgets/hierarchy.rb
@@ -4,13 +4,13 @@ module WorkItems
module Widgets
class Hierarchy < Base
def parent
- return unless Feature.enabled?(:work_items, work_item.project)
+ return unless work_item.project.work_items_feature_flag_enabled?
work_item.work_item_parent
end
def children
- return WorkItem.none unless Feature.enabled?(:work_items, work_item.project)
+ return WorkItem.none unless work_item.project.work_items_feature_flag_enabled?
work_item.work_item_children
end