diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/query/v3/QueryTemplateHandlerRestController.java b/src/main/java/de/numcodex/feasibility_gui_backend/query/v3/QueryTemplateHandlerRestController.java index e728329f..c8168334 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/query/v3/QueryTemplateHandlerRestController.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/query/v3/QueryTemplateHandlerRestController.java @@ -143,7 +143,7 @@ public ResponseEntity validateTemplates(Principal principal) { .comment(convertedQuery.comment()) .lastModified(convertedQuery.lastModified()) .createdBy(convertedQuery.createdBy()) - .invalidTerms(convertedQuery.invalidTerms()) + .invalidTerms(invalidTermCodes) .isValid(convertedQuery.isValid()) .build(); ret.add(convertedQueryWithoutContent);