option added to distinguish between edit and new action so that modification of activity with uactive type is possible

This commit is contained in:
2021-10-06 14:07:26 +02:00
parent ddbd6a9f23
commit b510d6a7f5
2 changed files with 8 additions and 3 deletions

View File

@@ -256,6 +256,7 @@ class ActivityController extends AbstractController
'role' => new Role('CHILL_ACTIVITY_CREATE'),
'activityType' => $entity->getType(),
'accompanyingPeriod' => $accompanyingPeriod,
'edit' => false
])->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
@@ -366,6 +367,7 @@ class ActivityController extends AbstractController
'role' => new Role('CHILL_ACTIVITY_UPDATE'),
'activityType' => $entity->getType(),
'accompanyingPeriod' => $accompanyingPeriod,
'edit' => true
])->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {