mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix error with doctrine:fixtures:load
This commit is contained in:
parent
d5f1de1fbc
commit
6b91808987
@ -20,6 +20,11 @@ class ListenToActivityCreate
|
|||||||
{
|
{
|
||||||
// Get the calendarId from the request
|
// Get the calendarId from the request
|
||||||
$request = $this->requestStack->getCurrentRequest();
|
$request = $this->requestStack->getCurrentRequest();
|
||||||
|
|
||||||
|
if (null === $request) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($request->query->has('activityData')) {
|
if ($request->query->has('activityData')) {
|
||||||
$activityData = $request->query->get('activityData');
|
$activityData = $request->query->get('activityData');
|
||||||
if (array_key_exists('calendarId', $activityData)) {
|
if (array_key_exists('calendarId', $activityData)) {
|
||||||
@ -37,4 +42,4 @@ class ListenToActivityCreate
|
|||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user