mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
location: allow null value for location in Calendar
This commit is contained in:
parent
c1f4e77293
commit
51938a99db
@ -188,7 +188,7 @@ class CalendarType extends AbstractType
|
||||
}
|
||||
return $location->getId();
|
||||
},
|
||||
function (?string $id): Location {
|
||||
function (?string $id): ?Location {
|
||||
return $this->om->getRepository(Location::class)->findOneBy(['id' => (int) $id]);
|
||||
}
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user