mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-17 10:42:48 +00:00
fix bug with PostalCode ChoiceLoader form
error: must be an instance of Chill\MainBundle\Entity\PostalCode, null given only with: APP_DEV=prod
This commit is contained in:
@@ -47,7 +47,7 @@ class PostalCodeChoiceLoader implements ChoiceLoaderInterface
|
|||||||
{
|
{
|
||||||
$list = new \Symfony\Component\Form\ChoiceList\ArrayChoiceList(
|
$list = new \Symfony\Component\Form\ChoiceList\ArrayChoiceList(
|
||||||
$this->lazyLoadedPostalCodes,
|
$this->lazyLoadedPostalCodes,
|
||||||
function(PostalCode $pc) use ($value) {
|
function(PostalCode $pc = null) use ($value) {
|
||||||
return \call_user_func($value, $pc);
|
return \call_user_func($value, $pc);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user