From 0437e00dcdcf45afb89411ab0a2695be8919009e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 29 Sep 2021 17:07:10 +0200 Subject: [PATCH] suggest only temporary addresses --- .../ChillPersonBundle/Controller/PersonApiController.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php index 17635a8fa..ab39c13bb 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php @@ -77,13 +77,6 @@ class PersonApiController extends ApiController $a = $participation->getAccompanyingPeriod()->getAddressLocation(); $addresses[$a->getId()] = $a; } - if (null !== $personLocation = $participation - ->getAccompanyingPeriod()->getPersonLocation()) { - $a = $personLocation->getCurrentHouseholdAddress(); - if (null !== $a) { - $addresses[$a->getId()] = $a; - } - } } // remove the actual address