From f7652bb5cbe230d5555627349cd4be949907565c Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Fri, 22 Nov 2024 17:24:06 +0100 Subject: [PATCH] RHINENG-14390: display advisories with applicable systems --- manager/controllers/advisories.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/controllers/advisories.go b/manager/controllers/advisories.go index a807fc1c9..bb3496186 100644 --- a/manager/controllers/advisories.go +++ b/manager/controllers/advisories.go @@ -210,7 +210,8 @@ func buildQueryAdvisories(db *gorm.DB, account int) *gorm.DB { query := database.AdvisoryMetadata(db). Select(AdvisoriesSelect). Joins("JOIN advisory_account_data aad ON am.id = aad.advisory_id"). - Where("aad.rh_account_id = ?", account) + Where("aad.rh_account_id = ?", account). + Where("aad.systems_applicable > 0") return query }