Skip to content

Commit

Permalink
Fix inverted "show inactive" filter in vulnerability audit view
Browse files Browse the repository at this point in the history
Fixes #3832

Co-authored-by: Ross Murphy <[email protected]>
Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro and 2000rosser committed Jun 22, 2024
1 parent bbedc38 commit 68baa7a
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 68baa7a

Please sign in to comment.