From 1aaa743cd28b48b54597d0852b97d9963e961774 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 8 May 2016 20:38:51 -0700 Subject: [PATCH] IDEMPIERE-3072 Error in creating new record in documents with lines in big tables. / commit patch suggested by Denis Kuznetsov --- org.adempiere.base/src/org/compiere/model/GridTable.java | 2 +- .../src/org/adempiere/webui/adwindow/CompositeADTabbox.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java index efa0eb2967..f4be409bd3 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTable.java +++ b/org.adempiere.base/src/org/compiere/model/GridTable.java @@ -203,7 +203,7 @@ public class GridTable extends AbstractTableModel /** The SELECT clause with FROM */ private String m_SQL_Select; /** The static where clause */ - private String m_whereClause = ""; + private String m_whereClause = "2=3"; /** Show only Processed='N' and last 24h records */ private boolean m_onlyCurrentRows = false; /** Show only Not processed and x days */ diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java index fccf1fea02..cefb55c90a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java @@ -788,7 +788,7 @@ public class CompositeADTabbox extends AbstractADTabbox } headerTab.getDetailPane().onEdit(getSelectedDetailADTabpanel().getGridTab().isSingleRow()); } catch (Exception e) { - log.log(Level.SEVERE, e.getLocalizedMessage(), e); + throw new RuntimeException(e); } } }