mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
hotfix: repair creation activity (was an error linked to ListenToActivityCreate)
This commit is contained in:
parent
9851efa804
commit
ca7ba90717
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user