IDEMPIERE-4387 Cannot select C&W Business Partner in Multi Select Search (#438)

- base on patch from Carlos and hints from hieplq
This commit is contained in:
hengsin 2020-12-05 23:38:36 +08:00 committed by GitHub
parent fb053003a9
commit 9d02ecaadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,7 @@ Import-Package: groovy.transform.stc;version="2.4.7",
org.apache.commons.fileupload.portlet;version="1.2.2",
org.apache.commons.fileupload.servlet;version="1.2.2",
org.apache.commons.fileupload.util;version="1.2.2",
org.apache.commons.lang3;version="3.1.0",
org.apache.ecs,
org.apache.ecs.xhtml,
org.apache.tools.ant,

View File

@ -29,6 +29,7 @@ import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringEscapeUtils;
import org.zkoss.lang.Objects;
import org.zkoss.xel.VariableResolver;
import org.zkoss.zk.au.out.AuSetAttribute;
@ -723,7 +724,8 @@ public class Chosenbox<T> extends HtmlBasedComponent {
addEventListener("onSearching", _eventListener);
}
private Integer getIndexFromValue(String value, boolean checkSubList) {
private Integer getIndexFromValue(String valueHTML, boolean checkSubList) {
String value = StringEscapeUtils.unescapeHtml4(valueHTML);
for (int i = 0; i < _model.getSize(); i++) {
if (value.equals(_model.getElementAt(i).toString()))
return Integer.valueOf(i);