From c0559b8e18b2a233d78e0fb9e4c77a5aeee6c40b Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 7 Feb 2011 11:18:23 +0800 Subject: [PATCH] Fixed the new record button in find dialog incorrectly set an empty query object as the current query for the window. --- .../src/org/adempiere/webui/panel/AbstractADWindowPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java index 75eeb1bf72..ed2e53011b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java @@ -665,8 +665,11 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To // Title is not set when the number of rows is below the minRecords parameter (10) if (!find.isCancel()) { - query = find.getQuery(); m_findCreateNew = find.isCreateNew(); + if (!m_findCreateNew) + { + query = find.getQuery(); + } } else m_findCancelled = true;