fix error with doctrine:fixtures:load

This commit is contained in:
Mathieu Jaumotte 2021-09-23 14:08:29 +02:00
parent d5f1de1fbc
commit 6b91808987

View File

@ -20,6 +20,11 @@ class ListenToActivityCreate
{
// Get the calendarId from the request
$request = $this->requestStack->getCurrentRequest();
if (null === $request) {
return;
}
if ($request->query->has('activityData')) {
$activityData = $request->query->get('activityData');
if (array_key_exists('calendarId', $activityData)) {
@ -37,4 +42,4 @@ class ListenToActivityCreate
$em->flush();
}
}
}