IDEMPIERE-5764 [ZOOM] - Window configured in reference does not work (#1906)
This commit is contained in:
parent
7adbc91505
commit
112eadc8fc
|
@ -477,17 +477,16 @@ public final class AEnv
|
||||||
zoomQuery.setZoomValue(value);
|
zoomQuery.setZoomValue(value);
|
||||||
zoomQuery.addRestriction(column, MQuery.EQUAL, value);
|
zoomQuery.addRestriction(column, MQuery.EQUAL, value);
|
||||||
zoomQuery.setRecordCount(1); // guess
|
zoomQuery.setRecordCount(1); // guess
|
||||||
if (zoomQuery.getZoomTableName() != null) {
|
int windowId = lookup.getZoom(zoomQuery);
|
||||||
int tableId = -1;
|
if (windowId > 0) {
|
||||||
tableId = MTable.getTable_ID(zoomQuery.getZoomTableName());
|
zoom(windowId, zoomQuery, lookup.getWindowNo());
|
||||||
if (value instanceof Integer && ((Integer) value).intValue() >= 0 && zoomQuery != null && zoomQuery.getZoomTableName() != null) {
|
} else {
|
||||||
|
int tableId = MTable.getTable_ID(zoomQuery.getZoomTableName());
|
||||||
|
if (value instanceof Integer && ((Integer) value).intValue() >= 0) {
|
||||||
zoom(tableId, ((Integer) value).intValue(), zoomQuery, lookup.getWindowNo());
|
zoom(tableId, ((Integer) value).intValue(), zoomQuery, lookup.getWindowNo());
|
||||||
} else {
|
} else {
|
||||||
zoomUU(tableId, value.toString(), zoomQuery, lookup.getWindowNo());
|
zoomUU(tableId, value.toString(), zoomQuery, lookup.getWindowNo());
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
int windowId = lookup.getZoom(zoomQuery);
|
|
||||||
zoom(windowId, zoomQuery, lookup.getWindowNo());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue