fixes: add tests for generation and fix some situation

This commit is contained in:
2023-05-31 23:29:34 +02:00
parent 1b0569c974
commit 80dfa092db
8 changed files with 503 additions and 37 deletions

View File

@@ -206,10 +206,10 @@ class ActivityContext implements
$normalized = [];
foreach (['mainPerson', 'person1', 'person2'] as $k) {
$normalized[$k] = null === $data[$k] ? null : $data[$k]->getId();
$normalized[$k] = ($data[$k] ?? null)?->getId();
}
$normalized['thirdParty'] = null === $data['thirdParty'] ? null : $data['thirdParty']->getId();
$normalized['thirdParty'] = ($data['thirdParty'] ?? null)?->getId();
return $normalized;
}