mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
privacyEvent: remove element parameter
This commit is contained in:
@@ -56,7 +56,7 @@ class AccompanyingPeriodController extends Controller
|
||||
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
$event = new PrivacyEvent($person, null, array(
|
||||
$event = new PrivacyEvent($person, array(
|
||||
'element_class' => AccompanyingPeriod::class,
|
||||
'action' => 'list'
|
||||
));
|
||||
|
@@ -71,7 +71,7 @@ class TimelinePersonController extends Controller
|
||||
|
||||
$paginator = $paginatorFactory->create($nbItems);
|
||||
|
||||
$event = new PrivacyEvent($person);
|
||||
$event = new PrivacyEvent($person, array('action' => 'timeline'));
|
||||
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
|
||||
|
||||
return $this->render('ChillPersonBundle:Timeline:index.html.twig', array
|
||||
|
Reference in New Issue
Block a user