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

:ambulance: fix(sinaps) supannCodeEntiteParent is multivaluated

issue #5945
Showing with 2 additions and 2 deletions
+2 -2
...@@ -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'];
} }
} }
} }
......
  • SonarQube analysis reported 2 issues

    • :warning: 2 major

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. :warning: This function "getUserValues" has 198 lines, which is greater than the 150 lines authorized. Split it into smaller functions. :blue_book:
    2. :warning: Remove this unused "$class" local variable. :blue_book:
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