IDEMPIERE-1323 Zoom Condition bug

This commit is contained in:
Carlos Ruiz 2013-09-05 14:44:45 -05:00
parent 9b84f465db
commit 79cf3109d0
1 changed files with 7 additions and 2 deletions

View File

@ -386,8 +386,13 @@ public final class AEnv
zoomQuery.addRestriction(column, MQuery.EQUAL, value);
zoomQuery.setRecordCount(1); // guess
}
int windowId = lookup.getZoom(zoomQuery);
zoom(windowId, zoomQuery);
if (value instanceof Integer && ((Integer) value).intValue() >= 0 && zoomQuery != null && zoomQuery.getZoomTableName() != null) {
int tableId = MTable.getTable_ID(zoomQuery.getZoomTableName());
zoom(tableId, ((Integer) value).intValue());
} else {
int windowId = lookup.getZoom(zoomQuery);
zoom(windowId, zoomQuery);
}
}
/**