eventIds.addAll(idsFilteredByTime);
}</BUG>
activeFilter = true;
<BUG>}
if (criteria.hasCategoryCriteria()) {
Set<String> idsFilteredByCategory = filterByCategories(tenantId, criteria);</BUG>
if (activeFilter) {
<BUG>eventIds.retainAll(idsFilteredByCategory);
if (eventIds.isEmpty()) {</BUG>
return new Page<>(events, pager, 0);

eventIds.addAll(idsFilteredByTime);
}
if (eventIds.isEmpty()) {
return new Page<>(events, pager, 0);
}
activeFilter = true;
