From a7ce6b29ac484999d4c41c9ac5d48413ab83b9ab Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 24 Oct 2017 16:52:47 +0200 Subject: [PATCH] IDEMPIERE-3096 Use indirect context for mail signatures --- org.adempiere.base/src/org/compiere/model/MMailText.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/MMailText.java b/org.adempiere.base/src/org/compiere/model/MMailText.java index ada28c96c6..f9d11e730b 100644 --- a/org.adempiere.base/src/org/compiere/model/MMailText.java +++ b/org.adempiere.base/src/org/compiere/model/MMailText.java @@ -216,6 +216,10 @@ public class MMailText extends X_R_MailText */ private String parseVariable (String variable, PO po) { + if (variable.contains("<") && variable.contains(">")) { // IDEMPIERE-3096 + return Env.parseVariable("@"+variable+"@", po, get_TrxName(), true); + } + // special default formatting cases for dates/times/boolean in mail text not covered by Env.parseVariable int index = po.get_ColumnIndex(variable); if (index == -1){ StringBuilder msgreturn = new StringBuilder("@").append(variable).append("@");