diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 03:08:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 03:08:11 +0300 |
commit | 23bc19cb73aad969c9636b8b935111645e809e54 (patch) | |
tree | 887c9e014f8345f577769db4f75315ca59853b98 /app/finders/releases_finder.rb | |
parent | c4db541c1b2c97ab1eda354ea3899489fe5c33e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders/releases_finder.rb')
-rw-r--r-- | app/finders/releases_finder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/finders/releases_finder.rb b/app/finders/releases_finder.rb index 72bf968c8ec..e58a90922a5 100644 --- a/app/finders/releases_finder.rb +++ b/app/finders/releases_finder.rb @@ -9,7 +9,8 @@ class ReleasesFinder def execute(preload: true) return Release.none unless Ability.allowed?(@current_user, :read_release, @project) - releases = @project.releases + # See https://gitlab.com/gitlab-org/gitlab/-/issues/211988 + releases = @project.releases.where.not(tag: nil) # rubocop:disable CodeReuse/ActiveRecord releases = releases.preloaded if preload releases.sorted end |