diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-07 21:09:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-07 21:09:46 +0000 |
commit | 6867eff1f997a881cd3ea64109f7ba2d4b42fde4 (patch) | |
tree | a0d4b0ced920ff41311e578b406ed9a7136e8f42 /app/finders | |
parent | 3290d46655f07d7ae3dca788d6df9f326972ffd8 (diff) | |
download | gitlab-ce-6867eff1f997a881cd3ea64109f7ba2d4b42fde4.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/projects_finder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/projects_finder.rb b/app/finders/projects_finder.rb index 2c3611875a2..23648e0f494 100644 --- a/app/finders/projects_finder.rb +++ b/app/finders/projects_finder.rb @@ -142,8 +142,8 @@ class ProjectsFinder < UnionFinder # rubocop: disable CodeReuse/ActiveRecord def by_ids(items) items = items.where(id: project_ids_relation) if project_ids_relation - items = items.where('id > ?', params[:id_after]) if params[:id_after] - items = items.where('id < ?', params[:id_before]) if params[:id_before] + items = items.where('projects.id > ?', params[:id_after]) if params[:id_after] + items = items.where('projects.id < ?', params[:id_before]) if params[:id_before] items end # rubocop: enable CodeReuse/ActiveRecord |