Skip to content

Commit

Permalink
fix issue in vulnerabilityaudit where wrong projects shown when show …
Browse files Browse the repository at this point in the history
…inactive projects is selected

Signed-off-by: Ross Murphy <[email protected]>
  • Loading branch information
2000rosser committed Jun 12, 2024
1 parent 1a4857f commit 8fd47fa
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 8fd47fa

Please sign in to comment.