mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
Fixed: fix CS + fix "my workflow" api when course or work has been delete
This commit is contained in:
@@ -47,8 +47,7 @@ class AccompanyingPeriodWorkWorkflowHandler implements EntityWorkflowHandlerInte
|
||||
public function getEntityData(EntityWorkflow $entityWorkflow, array $options = []): array
|
||||
{
|
||||
return [
|
||||
'persons' => $this->getRelatedEntity($entityWorkflow)
|
||||
->getPersons(),
|
||||
'persons' => $this->getRelatedEntity($entityWorkflow)?->getPersons() ?? [],
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user