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:
parent
fb053003a9
commit
9d02ecaadb
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue