Skip to content

Commit

Permalink
Fixed small oversight that would cause a filter to be overwritten wit…
Browse files Browse the repository at this point in the history
…h null if it wasn't the last in the queue and would duplicate searchvalues
  • Loading branch information
MarkvdVorst committed Apr 23, 2024
1 parent 4b43b45 commit a794082
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/nl/nn/testtool/web/api/MetadataApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ public Response getMetadataList(@PathParam("storage") String storageName,

List<String> searchValues = new ArrayList<>();
for(String field : metadataNames) {
boolean changed = false;
for (int filterHeaderIndex = 0; filterHeaderIndex < filterHeaders.size(); filterHeaderIndex++) {
if (filterHeaders.get(filterHeaderIndex).equals(field)) {
searchValues.add(filterParams.get(filterHeaderIndex));
} else {
searchValues.add(null);
changed = true;
}
}
if(!changed) {
searchValues.add(null);
}
}
try {

Expand Down

0 comments on commit a794082

Please sign in to comment.