Skip to content

Commit

Permalink
Merge pull request #3839 from 2000rosser/3832-issue
Browse files Browse the repository at this point in the history
vulnerabilityAudit incorrectly displaying non-active projects

Fixes #3832
  • Loading branch information
nscuro authored Jun 13, 2024
2 parents f4cb5a4 + 8fd47fa commit 05c1e8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class FindingsSearchQueryManager extends QueryManager implements IQueryMa
public PaginatedResult getAllFindings(final Map<String, String> filters, final boolean showSuppressed, final boolean showInactive) {
StringBuilder queryFilter = new StringBuilder();
Map<String, Object> params = new HashMap<>();
if (showInactive) {
if (!showInactive) {
queryFilter.append(" WHERE (\"PROJECT\".\"ACTIVE\" = :active OR \"PROJECT\".\"ACTIVE\" IS NULL)");
params.put("active", true);
}
Expand Down Expand Up @@ -161,7 +161,7 @@ public PaginatedResult getAllFindings(final Map<String, String> filters, final b
public PaginatedResult getAllFindingsGroupedByVulnerability(final Map<String, String> filters, final boolean showInactive) {
StringBuilder queryFilter = new StringBuilder();
Map<String, Object> params = new HashMap<>();
if (showInactive) {
if (!showInactive) {
queryFilter.append(" WHERE (\"PROJECT\".\"ACTIVE\" = :active OR \"PROJECT\".\"ACTIVE\" IS NULL)");
params.put("active", true);
}
Expand Down

0 comments on commit 05c1e8a

Please sign in to comment.