hotfix: repair creation activity (was an error linked to ListenToActivityCreate)

This commit is contained in:
nobohan 2021-09-28 14:53:00 +02:00
parent 9851efa804
commit ca7ba90717

View File

@ -29,8 +29,6 @@ class ListenToActivityCreate
$activityData = $request->query->get('activityData'); $activityData = $request->query->get('activityData');
if (array_key_exists('calendarId', $activityData)) { if (array_key_exists('calendarId', $activityData)) {
$calendarId = $activityData['calendarId']; $calendarId = $activityData['calendarId'];
}
}
// Attach the activity to the calendar // Attach the activity to the calendar
$em = $event->getObjectManager(); $em = $event->getObjectManager();
@ -40,6 +38,10 @@ class ListenToActivityCreate
$em->persist($calendar); $em->persist($calendar);
$em->flush(); $em->flush();
}
}
} }
} }