mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
Feature: [activity] automatically add a person to an activity, if
created in the person context See https://gitlab.com/Chill-Projet/chill-bundles/-/issues/28
This commit is contained in:
parent
448d93cd02
commit
cd54fdd13f
@ -359,6 +359,7 @@ final class ActivityController extends AbstractController
|
|||||||
|
|
||||||
if ($person instanceof Person) {
|
if ($person instanceof Person) {
|
||||||
$entity->setPerson($person);
|
$entity->setPerson($person);
|
||||||
|
$entity->getPersons()->add($person);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($accompanyingPeriod instanceof AccompanyingPeriod) {
|
if ($accompanyingPeriod instanceof AccompanyingPeriod) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user