From a6a69851ba40c69a67b0b9a23740c7e7812179d0 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 8 Mar 2011 12:24:50 -0500 Subject: [PATCH] FR 2945715 - Improve Advanced Search http://sourceforge.net/support/tracker.php?aid=2945715 - Implement fix for backward compatibility suggested by tspc --- org.adempiere.base/src/org/compiere/model/MQuery.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/MQuery.java b/org.adempiere.base/src/org/compiere/model/MQuery.java index a62dd9c60e..f9301b7a1f 100644 --- a/org.adempiere.base/src/org/compiere/model/MQuery.java +++ b/org.adempiere.base/src/org/compiere/model/MQuery.java @@ -624,6 +624,9 @@ public class MQuery implements Serializable qualified = false; // StringBuffer sb = new StringBuffer(); + if (! isActive()) + return sb.toString(); + sb.append('('); for (int i = 0; i < m_list.size(); i++) {