Author: jleroux
Date: Sat Sep 24 07:44:28 2011
New Revision: 1175122
URL:
http://svn.apache.org/viewvc?rev=1175122&view=revLog:
A patch from Christian Fischer "Content HTML-safe, wasn't necessary for the autocomplete"
https://issues.apache.org/jira/browse/OFBIZ-4434Before the patch, the content was made HTML-safe, what wasn't necessary for the autocomplete. Also, it displayed things like "F¨r", because it made the umlauts HTML-safe, too.
The patch uses the stringwrapper from the stringUtil.java to avoid the general HTML auto-encoding.
Modified:
ofbiz/trunk/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl
Modified: ofbiz/trunk/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl?rev=1175122&r1=1175121&r2=1175122&view=diff==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl Sat Sep 24 07:44:28 2011
@@ -48,7 +48,7 @@ under the License.
<#if (key == context.returnField)>
<#assign returnField = field/>
<#else>
- <#assign displayString = displayString + field + " ">
+ <#assign displayString = displayString + StringUtil.wrapString(field) + " ">
</#if>
</#if>
</#list>