fix IDEMPIERE-56 Zoom on empty "Document Sequence" field opens "AP Payment" document sequence
This commit is contained in:
parent
fd4c1062fc
commit
fc7bce6434
|
@ -1291,6 +1291,9 @@ public class VLookup extends JComponent
|
|||
Object value = getValue();
|
||||
if (value == null)
|
||||
value = selectedItem;
|
||||
// still null means the field is empty or not selected item
|
||||
if (value == null)
|
||||
value = -1;
|
||||
// If not already exist or exact value
|
||||
if (zoomQuery == null || value != null)
|
||||
{
|
||||
|
|
|
@ -411,6 +411,9 @@ public final class AEnv
|
|||
return;
|
||||
//
|
||||
MQuery zoomQuery = lookup.getZoomQuery();
|
||||
// still null means the field is empty or not selected item
|
||||
if (value == null)
|
||||
value = -1;
|
||||
|
||||
// If not already exist or exact value
|
||||
if (zoomQuery == null || value != null)
|
||||
|
|
Loading…
Reference in New Issue