Search on empty window failing - ID: 2849453
This commit is contained in:
parent
8a8ac368ab
commit
506bc2038f
|
@ -1188,8 +1188,6 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
|||
FindWindow find = new FindWindow (curTab.getWindowNo(), curTab.getName(),
|
||||
curTab.getAD_Table_ID(), curTab.getTableName(),
|
||||
curTab.getWhereExtended(), findFields, 1, curTab.getAD_Tab_ID());
|
||||
find.setVisible(true);
|
||||
AEnv.showWindow(find);
|
||||
|
||||
if (!find.isCancel())
|
||||
{
|
||||
|
|
|
@ -33,6 +33,7 @@ import java.util.logging.Level;
|
|||
import java.util.regex.Pattern;
|
||||
|
||||
import org.adempiere.webui.LayoutUtils;
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.component.Button;
|
||||
import org.adempiere.webui.component.Combobox;
|
||||
import org.adempiere.webui.component.Grid;
|
||||
|
@ -211,6 +212,7 @@ public class FindWindow extends Window implements EventListener,ValueChangeListe
|
|||
|
||||
if (m_total < minRecords)
|
||||
{
|
||||
dispose();
|
||||
return;
|
||||
}
|
||||
this.setBorder("normal");
|
||||
|
@ -220,6 +222,9 @@ public class FindWindow extends Window implements EventListener,ValueChangeListe
|
|||
this.setAttribute(Window.MODE_KEY, Window.MODE_MODAL);
|
||||
this.setClosable(false);
|
||||
this.setSizable(true);
|
||||
|
||||
this.setVisible(true);
|
||||
AEnv.showWindow(this);
|
||||
}
|
||||
/**
|
||||
* initialise lookup record tab
|
||||
|
|
Loading…
Reference in New Issue