From f9627973279eaec66239600090b1ed9aa3651ac3 Mon Sep 17 00:00:00 2001 From: Yaris van Thiel Date: Tue, 13 Jun 2023 14:34:37 +0200 Subject: [PATCH] Fix class cass exception on provider --- .../java/com/ocs/dynamo/ui/component/EntityTokenSelect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamo-frontend/src/main/java/com/ocs/dynamo/ui/component/EntityTokenSelect.java b/dynamo-frontend/src/main/java/com/ocs/dynamo/ui/component/EntityTokenSelect.java index 0d3c2a11a..ddd580ca6 100644 --- a/dynamo-frontend/src/main/java/com/ocs/dynamo/ui/component/EntityTokenSelect.java +++ b/dynamo-frontend/src/main/java/com/ocs/dynamo/ui/component/EntityTokenSelect.java @@ -191,7 +191,7 @@ private void castAndSetDataProvider(DataProvider> pr if (provider instanceof CallbackDataProvider) { setItems((CallbackDataProvider) provider); } else if (provider instanceof ListDataProvider) { - setItems(new MultiSelectIgnoreDiacriticsCaptionFilter<>(entityModel, true, false), (Collection) provider); + setItems(new MultiSelectIgnoreDiacriticsCaptionFilter<>(entityModel, true, false), ((ListDataProvider) provider).getItems()); } }