Env.parseVariable cannot use expression from current PO object

Description

Hi,

I'm adding a specific process to send an order to the customer (generate the PDF, create an email and send it).

It uses a mail template and I have an issue with the description

Order Description @Description@

When parsing @Description@ is replaced by AD_User.Description.

So, I've updated the mail template to this notation @C_Order_ID<Description>@

But the output was "".
Is because Env.parseVariable didn't find the foreignTable variable.

I've updated Env.java and now is working.

Could you please review the patch ?

Thanks,

Nicolas

Environment

None

Assignee

Carlos Ruiz

Reporter

Nicolas Micoud

Labels

Tested By

None

Priority

Major
Configure