From 825f900fc8b339403bf7c70e5711971bae06e53f Mon Sep 17 00:00:00 2001 From: phib Date: Thu, 16 Apr 2009 05:17:13 +0000 Subject: [PATCH] BF [2767537] High volume query test on window load doesn't parse context variables --- client/src/org/compiere/apps/APanel.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/org/compiere/apps/APanel.java b/client/src/org/compiere/apps/APanel.java index a6df44e5f1..de6f581301 100644 --- a/client/src/org/compiere/apps/APanel.java +++ b/client/src/org/compiere/apps/APanel.java @@ -896,7 +896,12 @@ public final class APanel extends CPanel if (wh1 == null || wh1.length() == 0) wh1 = mTab.getWhereClause(); if (wh1 != null && wh1.length() > 0) - where.append(wh1); + { + if (wh1.indexOf('@') == -1) + where.append(wh1); + else // replace variables + where.append(Env.parseContext(m_ctx, m_curWindowNo, wh1, false)); + } // if (query != null) {