mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
rdv->calendar: add location
This commit is contained in:
parent
8962c1c05f
commit
db67ed3194
@ -242,6 +242,11 @@ class ActivityController extends AbstractController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('location', $activityData)) {
|
||||||
|
$location = $em->getRepository(\Chill\MainBundle\Entity\Location::class)->find($activityData['location']);
|
||||||
|
$entity->setLocation($location);
|
||||||
|
}
|
||||||
|
|
||||||
if (array_key_exists('comment', $activityData)) {
|
if (array_key_exists('comment', $activityData)) {
|
||||||
$comment = new CommentEmbeddable();
|
$comment = new CommentEmbeddable();
|
||||||
$comment->setComment($activityData['comment']);
|
$comment->setComment($activityData['comment']);
|
||||||
|
@ -234,6 +234,7 @@ class CalendarController extends AbstractController
|
|||||||
'professionalsId' => $professionalsId,
|
'professionalsId' => $professionalsId,
|
||||||
'date' => $entity->getStartDate()->format('Y-m-d'),
|
'date' => $entity->getStartDate()->format('Y-m-d'),
|
||||||
'durationTime' => $durationTimeInMinutes,
|
'durationTime' => $durationTimeInMinutes,
|
||||||
|
'location' => $entity->getLocation()->getId(),
|
||||||
'comment' => $entity->getComment()->getComment(),
|
'comment' => $entity->getComment()->getComment(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user