- need special handling for _ID in parseContext, consistent with the Evaluator behaviour.
This commit is contained in:
Heng Sin Low 2009-12-03 17:17:42 +00:00
parent cea35ad9aa
commit d13a17195a
1 changed files with 10 additions and 3 deletions

View File

@ -1181,9 +1181,16 @@ public final class Env
ctxInfo = getContext(ctx, token); // get global context
if (ctxInfo.length() == 0)
{
s_log.config("No Context Win=" + WindowNo + " for: " + token);
if (!ignoreUnparsable)
return ""; // token not found
if (token.endsWith("_ID"))
{
outStr.append("0");
}
else
{
s_log.config("No Context Win=" + WindowNo + " for: " + token);
if (!ignoreUnparsable)
return ""; // token not found
}
}
else
outStr.append(ctxInfo); // replace context with Context