IDEMPIERE-3096 Use indirect context for mail signatures

This commit is contained in:
Carlos Ruiz 2017-10-24 16:52:47 +02:00
parent 96f2838b06
commit a7ce6b29ac
1 changed files with 4 additions and 0 deletions

View File

@ -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("@");