Merge branch 'master' of gitlab.com:Chill-Projet/chill-bundles

This commit is contained in:
2021-12-20 12:58:35 +01:00
22 changed files with 128 additions and 73 deletions

View File

@@ -63,7 +63,7 @@ class PersonJsonNormalizer implements
{
$person = $this->extractObjectToPopulate($type, $context);
if (array_key_exists('id', $data)) {
if (array_key_exists('id', $data) && null === $person) {
$person = $this->repository->find($data['id']);
if (null === $person) {