From 9048f394a70233baf1f8ab313fa4230151c764e5 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 25 Feb 2022 09:01:14 +0100 Subject: [PATCH] [Fix] Ignore BAG_ADDITIONAL_TYPE as well --- .../main/java/li/strolch/rest/endpoint/ReportResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/ReportResource.java b/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/ReportResource.java index e5ed14e16..3c1358cb8 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/ReportResource.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/ReportResource.java @@ -78,9 +78,9 @@ public class ReportResource { StrolchRootElementToJsonVisitor visitor = new StrolchRootElementToJsonVisitor().flat().withoutVersion() .withoutObjectType().withoutPolicies().withoutStateVariables() - .ignoreBags(BAG_JOINS, BAG_COLUMNS, BAG_ORDERING).ignoreBagByType(TYPE_FILTER).resourceHook( - (reportRes, reportJ) -> reportJ.addProperty(PARAM_DATE_RANGE, - reportRes.hasParameter(BAG_PARAMETERS, PARAM_DATE_RANGE_SEL))); + .ignoreBags(BAG_JOINS, BAG_COLUMNS, BAG_ORDERING, BAG_ADDITIONAL_TYPE).ignoreBagByType(TYPE_FILTER) + .resourceHook((reportRes, reportJ) -> reportJ.addProperty(PARAM_DATE_RANGE, + reportRes.hasParameter(BAG_PARAMETERS, PARAM_DATE_RANGE_SEL))); JsonArray result = new ReportSearch(tx).search(tx).orderByName(false) .map(resource -> resource.accept(visitor)).asStream() .collect(JsonArray::new, JsonArray::add, JsonArray::addAll);