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/finders/issuables/author_filter.rb')
-rw-r--r--app/finders/issuables/author_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/issuables/author_filter.rb b/app/finders/issuables/author_filter.rb
index 522751a384e..f36daae553d 100644
--- a/app/finders/issuables/author_filter.rb
+++ b/app/finders/issuables/author_filter.rb
@@ -2,7 +2,7 @@
module Issuables
class AuthorFilter < BaseFilter
- def filter
+ def filter(issuables)
filtered = by_author(issuables)
filtered = by_author_union(filtered)
by_negated_author(filtered)
@@ -21,7 +21,7 @@ module Issuables
end
def by_author_union(issuables)
- return issuables unless or_filters_enabled? && or_params&.fetch(:author_username).present?
+ return issuables unless or_filters_enabled? && or_params&.fetch(:author_username, false).present?
issuables.authored(User.by_username(or_params[:author_username]))
end