This is an automated email from the ASF dual-hosted git repository.

danwatford pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ada9c41990 Fixed: Set correct types in FindAutoCompleteOptions 
(OFBIZ-12803)
ada9c41990 is described below

commit ada9c41990587993cab0f300834f2020891aeaaf
Author: Daniel Watford <dan...@watfordconsulting.com>
AuthorDate: Mon Apr 17 11:56:56 2023 +0100

    Fixed: Set correct types in FindAutoCompleteOptions (OFBIZ-12803)
    
    Fixes a ClassCastException where a String value was assigned to a List.
---
 framework/common/groovyScripts/FindAutocompleteOptions.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/common/groovyScripts/FindAutocompleteOptions.groovy 
b/framework/common/groovyScripts/FindAutocompleteOptions.groovy
index 0fa91a77ca..b40b07decd 100644
--- a/framework/common/groovyScripts/FindAutocompleteOptions.groovy
+++ b/framework/common/groovyScripts/FindAutocompleteOptions.groovy
@@ -32,8 +32,8 @@ import java.sql.Timestamp
 List mainAndConds = []
 List orExprs = []
 String entityName = context.entityName
-List searchFields = context.searchFields
-List displayFields = context.displayFields ?: searchFields
+String searchFields = context.searchFields
+String displayFields = context.displayFields ?: searchFields
 boolean searchDistinct = Boolean.valueOf(context.searchDistinct ?: false)
 
 String searchValueFieldName = parameters.term

Reply via email to