- Issue created by @PhilY
- Status changed to Postponed: needs info
about 2 years ago 12:17pm 27 March 2023 - π©πͺGermany jurgenhaas Gottmadingen
@PhilY have you had a chance to give the proposed a solution a try?
- π«π·France PhilY πͺπΊπ«π· Paris, France
@jurgenhaas:
The process I'm trying to set up should react on both "Insert content entity" and "Update content entity" events.
Basically, it's an email notification which recipent depends on the updated state.For "update", the core patch you provided at https://www.drupal.org/project/drupal/issues/3346430 π Wrong revision can be loaded into original in \Drupal\Core\Entity\EntityStorageBase::doPreSave Needs work works using Drupal 9.5.5, ECA 1.1.2 & PHP 8.1.6
For "insert", both before and after moderation states have the same value (the new one) but that may be designed by core as there is no previous state.
Anyway, I just need to add a test in the loop for new entities.So, I can now check previous moderation state against new one on node update event, thanks a lot.
- Status changed to Fixed
about 2 years ago 3:02pm 29 March 2023 - π©πͺGermany jurgenhaas Gottmadingen
Marking this as fixed. Regarding the insert entity event, I think it is expected, that a new entity is not actually changing state, it gets its initial state.
Automatically closed - issue fixed for 2 weeks with no activity.