mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-21 03:17:46 +00:00
Associate activity's creator as a participant by default
- Added `addUser` call to automatically include the activity creator as a participant.
This commit is contained in:
@@ -382,6 +382,7 @@ final class ActivityController extends AbstractController
|
|||||||
|
|
||||||
$entity = new Activity();
|
$entity = new Activity();
|
||||||
$entity->setUser($this->security->getUser());
|
$entity->setUser($this->security->getUser());
|
||||||
|
$entity->addUser($this->security->getUser());
|
||||||
|
|
||||||
if ($person instanceof Person) {
|
if ($person instanceof Person) {
|
||||||
$entity->setPerson($person);
|
$entity->setPerson($person);
|
||||||
|
|||||||
Reference in New Issue
Block a user