FIX add initial user as suggestion and fix error when there are no suggestions

This commit is contained in:
2023-03-15 10:14:25 +01:00
parent de4cb1585b
commit eaea702454
4 changed files with 4 additions and 0 deletions

View File

@@ -354,6 +354,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
public function getUsersInvolved(): array
{
$usersInvolved = [];
$usersInvolved[spl_object_hash($this->getCreatedBy())] = $this->getCreatedBy();
foreach ($this->steps as $step) {
foreach ($step->getDestUser() as $u) {