Add guard to block signatures on related entities without objects

Implemented a guard to prevent signatures on related entities that lack a stored object. It also includes corresponding tests and added translation for the error message in French.
This commit is contained in:
2024-11-12 18:14:30 +01:00
parent bfa58177e0
commit 79621e8ab7
5 changed files with 213 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ class WorkflowNotificationHandler implements NotificationHandlerInterface
return [
'entity_workflow' => $entityWorkflow,
'handler' => null !== $entityWorkflow ? $this->entityWorkflowManager->getHandler($entityWorkflow): null,
'handler' => null !== $entityWorkflow ? $this->entityWorkflowManager->getHandler($entityWorkflow) : null,
'notificationCc' => $this->isNotificationCc($notification),
];
}