mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +08:00
NPE when we press button "Add to current set" #PL-2827
This commit is contained in:
parent
1730c4c8c6
commit
108f43d474
@ -2005,7 +2005,13 @@ public class WebFilter extends WebAbstractComponent<VerticalActionsLayout> imple
|
||||
IFrame frame = WebFilter.this.getFrame();
|
||||
String[] strings = ValuePathHelper.parse(getComponentPath());
|
||||
String windowAlias = strings[0];
|
||||
frame.openLookup(windowAlias, new Window.Lookup.Handler() {
|
||||
StringBuilder lookupAlias = new StringBuilder(windowAlias);
|
||||
if (windowAlias.endsWith(".browse")) {
|
||||
int index = lookupAlias.lastIndexOf(".browse");
|
||||
lookupAlias.delete(index, lookupAlias.length());
|
||||
lookupAlias.append(".lookup");
|
||||
}
|
||||
frame.openLookup(lookupAlias.toString(), new Window.Lookup.Handler() {
|
||||
@Override
|
||||
public void handleLookup(Collection items) {
|
||||
String filterXml = filterEntity.getXml();
|
||||
|
Loading…
Reference in New Issue
Block a user