IDEMPIERE-5261 Workflow EMail notification enhancement (#2104)

- Add @_noDocInfo_@ also in body
This commit is contained in:
Carlos Ruiz 2023-11-10 21:39:48 +01:00 committed by GitHub
parent 301ee9348b
commit 9794357e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1822,7 +1822,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
raw = text.getMailText(true, false);
if (raw != null && (raw.contains("@=DocumentInfo") || raw.contains("@=documentInfo")
|| raw.contains("@=Summary") || raw.contains("@=summary") || raw.contains("@_noDocInfo_@")))
message = text.getMailText(true);
message = text.getMailText(true).replaceAll("@_noDocInfo_@", "");
else
message = text.getMailText(true)
+ "\n-----\n" + doc.getDocumentInfo()