mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
Fixed: show list of workflow, event if some social action associated to a workflow are deleted
This commit is contained in:
@@ -56,6 +56,10 @@ class AccompanyingPeriodWorkWorkflowHandler implements EntityWorkflowHandlerInte
|
||||
{
|
||||
$work = $this->getRelatedEntity($entityWorkflow);
|
||||
|
||||
if (null === $work) {
|
||||
return $this->translator->trans('workflow.SocialAction deleted');
|
||||
}
|
||||
|
||||
return
|
||||
$this->translator->trans('workflow.Work (n°%w%)', ['%w%' => $entityWorkflow->getRelatedEntityId()])
|
||||
. ' - ' . $this->translatableStringHelper->localize($work->getSocialAction()->getTitle());
|
||||
|
Reference in New Issue
Block a user