mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 17:13:49 +00:00
SocialAction & Issues in Activity form
This commit is contained in:
@@ -50,7 +50,7 @@ class ActivityController extends AbstractController
|
||||
protected AuthorizationHelper $authorizationHelper;
|
||||
|
||||
protected LoggerInterface $logger;
|
||||
|
||||
|
||||
protected SerializerInterface $serializer;
|
||||
|
||||
public function __construct(
|
||||
@@ -191,6 +191,7 @@ class ActivityController extends AbstractController
|
||||
'center' => $entity->getCenter(),
|
||||
'role' => new Role('CHILL_ACTIVITY_CREATE'),
|
||||
'activityType' => $entity->getType(),
|
||||
'accompanyingPeriod' => $accompanyingPeriod,
|
||||
])->handleRequest($request);
|
||||
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
@@ -210,7 +211,7 @@ class ActivityController extends AbstractController
|
||||
}
|
||||
|
||||
$activity_array = $this->serializer->normalize($entity, 'json', ['groups' => 'read']);
|
||||
|
||||
|
||||
return $this->render($view, [
|
||||
'person' => $person,
|
||||
'accompanyingCourse' => $accompanyingPeriod,
|
||||
@@ -294,6 +295,7 @@ class ActivityController extends AbstractController
|
||||
'center' => $entity->getCenter(),
|
||||
'role' => new Role('CHILL_ACTIVITY_UPDATE'),
|
||||
'activityType' => $entity->getType(),
|
||||
'accompanyingPeriod' => $accompanyingPeriod,
|
||||
])->handleRequest($request);
|
||||
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
@@ -324,7 +326,7 @@ class ActivityController extends AbstractController
|
||||
}
|
||||
|
||||
$activity_array = $this->serializer->normalize($entity, 'json', ['groups' => 'read']);
|
||||
|
||||
|
||||
return $this->render($view, array(
|
||||
'entity' => $entity,
|
||||
'edit_form' => $form->createView(),
|
||||
|
Reference in New Issue
Block a user