From a3688295d2be5db667123191419b5dd4cc1a083d Mon Sep 17 00:00:00 2001 From: Varun M Khachane <46482922+varun-khachane@users.noreply.github.com> Date: Thu, 27 Apr 2023 15:04:07 +0530 Subject: [PATCH] Changes done in FileSearchPanel.java for issue #7345 Added a data structure to store all the data from thee filters which will be used to display it on the panel. --- Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java b/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java index 8bf624285f0..03c8e2424c9 100755 --- a/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java +++ b/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java @@ -303,14 +303,17 @@ private String getQuery() throws FilterValidationException { //String query = "SELECT " + tempQuery + " FROM tsk_files WHERE "; String query = ""; + String[] data = new String[20]; int i = 0; for (FileSearchFilter f : this.getEnabledFilters()) { String result = f.getPredicate(); if (!result.isEmpty()) { if (i > 0) { query += " AND (" + result + ")"; //NON-NLS + data[i] = result; } else { query += " (" + result + ")"; //NON-NLS + data[i] = result; } ++i; }