From 554603f2969b1377a6c7776ce18d1ad29babcc43 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 19 Mar 2013 17:28:06 +0800 Subject: [PATCH] IDEMPIERE-761 New record on role is showing role 0 info on detail. --- org.adempiere.base/src/org/compiere/model/GridTab.java | 5 ++++- .../WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridTab.java b/org.adempiere.base/src/org/compiere/model/GridTab.java index 0340551bf8..2aef26f077 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTab.java +++ b/org.adempiere.base/src/org/compiere/model/GridTab.java @@ -747,7 +747,10 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable setCurrentRow(0, true); } // query - public void clearForNewParentRecord() { + /** + * reset detail data grid when parent tab current record is new and not saved yet + */ + public void resetDetailForNewParentRecord() { if (m_mTable.isOpen()) { StringBuffer where = new StringBuffer("2=3"); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java index c582e9ebed..d1396f2a88 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java @@ -898,7 +898,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer } /** - * clear data grid for new parent record that's not saved yet + * reset detail data grid for new parent record that's not saved yet */ @Override public void resetDetailForNewParentRecord () @@ -906,7 +906,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer boolean open = gridTab.isOpen(); if (open) { - gridTab.clearForNewParentRecord(); + gridTab.resetDetailForNewParentRecord(); } }