diff options
author | Eva Kadlecová <evka.kadl@gmail.com> | 2018-09-30 11:31:01 +0200 |
---|---|---|
committer | Eva Kadlecová <evka.kadl@gmail.com> | 2018-10-01 19:29:56 +0200 |
commit | 10534e31622242ee6d6ad4d5502e1f2808979b43 (patch) | |
tree | 5368bab8b6cb0d26ca8de59f9d45fe5106b70f68 /app/finders | |
parent | 227cc997fb107672e3293c56e0dcb1df72ad82d5 (diff) | |
download | gitlab-ce-10534e31622242ee6d6ad4d5502e1f2808979b43.tar.gz |
Filter issues without an Assignee via the API
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 |