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
'entite' => array(
'supannRefId' => array(),
'postalAddress' => '',
'supannCodeEntiteParent' => '',
'supannCodeEntiteParent' => array(),
),
);
......@@ -194,7 +194,7 @@ class sinapsRequest
}
$mereUUID = $this->getUUIDFromReferenceCroisee($identifiantApplication, $lienStructure->referenceCroisee);
if (!empty($mereUUID)) {
$values['entite']['supannCodeEntiteParent'] = $ldapUuidToCodeEntiteCallback($mereUUID)['supannCodeEntite'];
$values['entite']['supannCodeEntiteParent'][] = $ldapUuidToCodeEntiteCallback($mereUUID)['supannCodeEntite'];
}
}
}
......
Markdown is supported
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