Unverified Commit b77e822b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(sinaps) supannCodeEntiteParent is multivaluated

issue #5945
parent ed52b0dd
...@@ -132,7 +132,7 @@ class sinapsRequest ...@@ -132,7 +132,7 @@ class sinapsRequest
'entite' => array( 'entite' => array(
'supannRefId' => array(), 'supannRefId' => array(),
'postalAddress' => '', 'postalAddress' => '',
'supannCodeEntiteParent' => '', 'supannCodeEntiteParent' => array(),
), ),
); );
...@@ -194,7 +194,7 @@ class sinapsRequest ...@@ -194,7 +194,7 @@ class sinapsRequest
} }
$mereUUID = $this->getUUIDFromReferenceCroisee($identifiantApplication, $lienStructure->referenceCroisee); $mereUUID = $this->getUUIDFromReferenceCroisee($identifiantApplication, $lienStructure->referenceCroisee);
if (!empty($mereUUID)) { if (!empty($mereUUID)) {
$values['entite']['supannCodeEntiteParent'] = $ldapUuidToCodeEntiteCallback($mereUUID)['supannCodeEntite']; $values['entite']['supannCodeEntiteParent'][] = $ldapUuidToCodeEntiteCallback($mereUUID)['supannCodeEntite'];
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment