mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-05 12:59:44 +00:00
hotfix: repair creation activity (was an error linked to ListenToActivityCreate)
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user