address: fix bug when editing address: update localisation and addressreferenceId + better update of the map in edition

This commit is contained in:
nobohan
2022-04-27 10:38:25 +02:00
parent f14c915502
commit 76549581e6
4 changed files with 26 additions and 12 deletions

View File

@@ -71,6 +71,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
'id' => $address->getPostCode()->getId(),
'name' => $address->getPostCode()->getName(),
'code' => $address->getPostCode()->getCode(),
'center' => $address->getPostcode()->getCenter(),
],
'country' => [
'id' => $address->getPostCode()->getCountry()->getId(),