mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix error in timeline with workflow in task
This commit is contained in:
parent
2a5ee00b86
commit
4d2f84a9bd
@ -136,7 +136,14 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
|||||||
|
|
||||||
public function getEntityTemplate($entity, $context, array $args)
|
public function getEntityTemplate($entity, $context, array $args)
|
||||||
{
|
{
|
||||||
$workflow = $this->registry->get($entity->getTask(), $entity->getData['workflow']);
|
$workflow = $this->registry->get($entity->getTask(),
|
||||||
|
(isset($entity->getData()['workflow'])) ? $entity->getData()['workflow'] : null
|
||||||
|
);
|
||||||
|
// sf4 check: prevent error message:
|
||||||
|
// `Notice: Undefined property: Chill\TaskBundle\Entity\Task\SingleTaskPlaceEvent::$getData`
|
||||||
|
// * fix syntax error on $entity->getData['workflow']
|
||||||
|
// * return null if not set
|
||||||
|
|
||||||
$transition = $this->getTransitionByName($entity->getTransition(), $workflow);
|
$transition = $this->getTransitionByName($entity->getTransition(), $workflow);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user