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
path: root/lib
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-10-04 15:33:25 +0300
committerNick Thomas <nick@gitlab.com>2018-10-04 15:33:25 +0300
commitea6e4f6594e773d80705ba73e49261db4cc89a78 (patch)
tree1544dd5a83e41ca31c9dac1cf812650aab32a4e5 /lib
parentaa83646479d583660afc7e6ffce833adc282d486 (diff)
parentc0e9eb0eaca198f5ae12d6bd693ddcd705f79369 (diff)
Merge branch 'ce-7287-epic-references' into 'master'
Support short reference to epics from project entities See merge request gitlab-org/gitlab-ce!22048
Diffstat (limited to 'lib')
-rw-r--r--lib/banzai/filter/epic_reference_filter.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/banzai/filter/epic_reference_filter.rb b/lib/banzai/filter/epic_reference_filter.rb
index e06e2fb3870..26bcf5c04b4 100644
--- a/lib/banzai/filter/epic_reference_filter.rb
+++ b/lib/banzai/filter/epic_reference_filter.rb
@@ -9,6 +9,12 @@ module Banzai
def self.object_class
Epic
end
+
+ private
+
+ def group
+ context[:group] || context[:project]&.group
+ end
end
end
end