Skip to content
Commit bf09aeaf authored by Markus Klein's avatar Markus Klein Committed by Stefan Bürk
Browse files

[BUGFIX] Avoid repeated e-mail content generation in FluidEmail

Body content generation may be triggered by calling some getter or
indirectly when the mail is sent (via `ensureValidity`).

This changes ensures that multiple tries to generate the body are only
executed if the state of the view has actually changed.

This enables extensions to manipulate the content of an e-mail via
events without getting their changes overridden again when the mail is
sent.

Resolves: #99944
Releases: main, 11.5
Change-Id: I5eced5710feeb66e6f1e32f10f710d388bc43a62
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78251


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 9d8d296e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment