From c47377eb6f6e1845fda9ca0ace540deb51361973 Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Wed, 7 Aug 2024 12:39:41 +0200 Subject: [PATCH] XWIKI-22399: Load used property values in suggestions, e.g., in Live Data filters even when the filter is empty * Also load mixed values when the filter is empty. --- .../resources/classes/AbstractClassPropertyValuesProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/classes/AbstractClassPropertyValuesProvider.java b/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/classes/AbstractClassPropertyValuesProvider.java index e76fd001bdfd..57362635164e 100644 --- a/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/classes/AbstractClassPropertyValuesProvider.java +++ b/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/classes/AbstractClassPropertyValuesProvider.java @@ -84,7 +84,7 @@ public PropertyValues getValues(ClassPropertyReference propertyReference, int li } try { - if (filter.isEmpty() || limit <= 0) { + if (limit <= 0) { return getAllowedValues(propertyDefinition, limit, filter); } else { return getMixedValues(propertyDefinition, limit, filter);