Racing condition - najprej uporabnik urednik, potem poslji mail.

pull/59/head
Lio Novelli 2024-04-01 22:12:36 +02:00
parent 1ab9d5f2b5
commit 98f6e751e7
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ use Drupal\node\NodeInterface;
/** /**
* Implements hook_entity_update(). * Implements hook_entity_update().
*/ */
function yufu_concept_entity_update(EntityInterface $entity) { function yufu_admin_node_presave(EntityInterface $entity) {
//function yufu_concept_entity_update(EntityInterface $entity) {
if ($entity instanceOf NodeInterface && $entity->bundle() == 'concept') { if ($entity instanceOf NodeInterface && $entity->bundle() == 'concept') {
$transition = \Drupal::service('content_moderation_notifications.notification_information')->getTransition($entity); $transition = \Drupal::service('content_moderation_notifications.notification_information')->getTransition($entity);
if ($transition->id() == 'publish') { if ($transition->id() == 'publish') {