details: /erp/devel/pi/rev/49fcf5bafec1 changeset: 10515:49fcf5bafec1 user: Antonio Moreno <antonio.moreno <at> openbravo.com> date: Thu Feb 10 09:57:10 2011 +0100 summary: In method which checks for 3.0 window compatibility, check fields instead of columns of the table.
diffstat: modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationUtils.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diffs (16 lines): diff -r 13ee34633762 -r 49fcf5bafec1 modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationUtils.java --- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationUtils.java Thu Feb 10 09:42:15 2011 +0100 +++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationUtils.java Thu Feb 10 09:57:10 2011 +0100 @@ -52,10 +52,8 @@ // FIXME Remove this once ImageBLOB is implemented // Currently, windows with ImageBLOB reference columns will be shown in classic mode - String tableName = tab.getTable().getDBTableName(); - org.openbravo.base.model.Table table = ModelProvider.getInstance().getTable(tableName); - for (org.openbravo.base.model.Column col : table.getColumns()) { - if (col.getReference().getId().equals("4AA6C3BE9D3B4D84A3B80489505A23E5")) { + for (Field field : tab.getADFieldList()) { + if (field.getColumn().getReference().getId().equals("4AA6C3BE9D3B4D84A3B80489505A23E5")) { return true; } } ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits