When adding an email template with tokens in subject and template body these tokens are replaced from the published entity rather than the entity being transitioned. This seems to stem from a workaround in the processor, which does not have the revision id (https://www.drupal.org/node/2723537) and therefore uses the uuid. We really need to be able to use the revision to populate the tokens, otherwise any changes are not included in the email.

Having looked at the related issue I have made use of the moderation information service to get the latest revision, which given a transition is occurring should (I believe) be the revision we require at this stage.

Comments

andywhale created an issue. See original summary.

andy_w’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.14 KB
larowlan’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Release blocker

Thanks

  • larowlan committed 62f182b on 8.x-1.x authored by andywhale
    Issue #2879423 by andywhale: Tokenised input not using revision
    
larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed - thanks

Will roll a new release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.