IDEMPIERE-1323 Zoom Condition bug
This commit is contained in:
parent
9b84f465db
commit
79cf3109d0
|
@ -386,8 +386,13 @@ public final class AEnv
|
||||||
zoomQuery.addRestriction(column, MQuery.EQUAL, value);
|
zoomQuery.addRestriction(column, MQuery.EQUAL, value);
|
||||||
zoomQuery.setRecordCount(1); // guess
|
zoomQuery.setRecordCount(1); // guess
|
||||||
}
|
}
|
||||||
int windowId = lookup.getZoom(zoomQuery);
|
if (value instanceof Integer && ((Integer) value).intValue() >= 0 && zoomQuery != null && zoomQuery.getZoomTableName() != null) {
|
||||||
zoom(windowId, zoomQuery);
|
int tableId = MTable.getTable_ID(zoomQuery.getZoomTableName());
|
||||||
|
zoom(tableId, ((Integer) value).intValue());
|
||||||
|
} else {
|
||||||
|
int windowId = lookup.getZoom(zoomQuery);
|
||||||
|
zoom(windowId, zoomQuery);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue