diff options
author | Rémy Coutable <remy@rymai.me> | 2018-10-02 13:09:12 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-10-02 13:09:12 +0300 |
commit | 974fe0797079f4f7ddc57b45d15ee7d39a06e78a (patch) | |
tree | 0dfcc09e301ef2dab1fa43b07295e7d118dc4a33 /app/finders | |
parent | af0178aa3a59e587aeaea2c8e87e0f5529ddb589 (diff) | |
parent | 10534e31622242ee6d6ad4d5502e1f2808979b43 (diff) |
Merge branch '41205-fix-filtering-issues' into 'master'
Filter issues without an Assignee via the API
Closes #41205
See merge request gitlab-org/gitlab-ce!22009
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/issuable_finder.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index 251a559878a..0209a1397b9 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -236,16 +236,16 @@ class IssuableFinder # rubocop: enable CodeReuse/ActiveRecord def assignee_id? - params[:assignee_id].present? && params[:assignee_id] != NONE + params[:assignee_id].present? && params[:assignee_id].to_s != NONE end def assignee_username? - params[:assignee_username].present? && params[:assignee_username] != NONE + params[:assignee_username].present? && params[:assignee_username].to_s != NONE end def no_assignee? # Assignee_id takes precedence over assignee_username - params[:assignee_id] == NONE || params[:assignee_username] == NONE + params[:assignee_id].to_s == NONE || params[:assignee_username].to_s == NONE end # rubocop: disable CodeReuse/ActiveRecord |