[ofbiz-framework] branch trunk updated: Improved: Decodes AjaxAutocompleteOptions return value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch trunk updated: Improved: Decodes AjaxAutocompleteOptions return value

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux 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 8ee522e  Improved: Decodes AjaxAutocompleteOptions return value
8ee522e is described below

commit 8ee522e42e9a3498350f52b3c8c812dcce14e7a2
Author: Ulrich Heidfeld <[hidden email]>
AuthorDate: Tue Mar 24 17:33:08 2020 +0100

    Improved: Decodes AjaxAutocompleteOptions return value
   
    (OFBIZ-11475)
---
 themes/common-theme/template/includes/AjaxAutocompleteOptions.ftl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/common-theme/template/includes/AjaxAutocompleteOptions.ftl b/themes/common-theme/template/includes/AjaxAutocompleteOptions.ftl
index 377e256..b1b297e 100644
--- a/themes/common-theme/template/includes/AjaxAutocompleteOptions.ftl
+++ b/themes/common-theme/template/includes/AjaxAutocompleteOptions.ftl
@@ -54,7 +54,7 @@ under the License.
                 </#if>
                   "id": "${returnField}",
                   "label": "<#if (displayString?trim?has_content )>${displayString?trim}<#else>${returnField}</#if>",
-                  "value": "${returnField}"
+                  "value": "${StringUtil.wrapString(returnField)}"
               }<#if autocompleteOption_has_next>,</#if>
           </#list>
         <#else>