re-use the display of workflow for the notification on evaluation document

This commit is contained in:
2023-06-13 23:05:09 +02:00
parent a6b451df98
commit 56957250ba
2 changed files with 119 additions and 27 deletions

View File

@@ -35,7 +35,8 @@ final class AccompanyingPeriodWorkEvaluationDocumentNotificationHandler implemen
{
return [
'notification' => $notification,
'document' => $this->accompanyingPeriodWorkEvaluationDocumentRepository->find($notification->getRelatedEntityId()),
'document' => $doc = $this->accompanyingPeriodWorkEvaluationDocumentRepository->find($notification->getRelatedEntityId()),
'evaluation' => $doc?->getAccompanyingPeriodWorkEvaluation(),
];
}