From 02b749cd4c7dd2b5819bbcc905389f552a7ffba2 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Tue, 29 Jul 2008 13:33:32 +0000 Subject: [PATCH] BF [ 2031461 ] Scriptlet not working for context vars that contain "." --- base/src/org/compiere/model/Scriptlet.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/Scriptlet.java b/base/src/org/compiere/model/Scriptlet.java index e7580a3e89..1a849b7335 100644 --- a/base/src/org/compiere/model/Scriptlet.java +++ b/base/src/org/compiere/model/Scriptlet.java @@ -161,10 +161,15 @@ public class Scriptlet { if (m_ctx == null) return; - Iterator it = m_ctx.keySet().iterator(); + Iterator it = m_ctx.keySet().iterator(); while (it.hasNext()) { - String key = (String)it.next(); + String key = it.next(); + // + // If key contains ".", skip it - teo_sarca BF [ 2031461 ] + if (key.indexOf(".") >= 0) + continue; + // Object value = m_ctx.get(key); try { @@ -240,7 +245,7 @@ public class Scriptlet m_ctx = new HashMap(); // Convert properties to HashMap - Enumeration en = prop.keys(); + Enumeration en = prop.keys(); while (en.hasMoreElements()) { String key = en.nextElement().toString();