Commit 7d16326a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch...

Merge branch '5918-sinaps-acquisition-couldn-t-be-sent-because-primary-affectation-isn-t-set' into '1.4-dev'

Resolve "SINAPS : acquisition couldn't be sent because primary affectation isn't set"

See merge request fusiondirectory/fd-plugins!532

(cherry picked from commit 92146c95)

373beffc  feat(sinaps) Store role->externe->identifiantStructureInterne in...
parent 33753f47
......@@ -278,6 +278,16 @@ class sinapsRequest
break 2;
}
if (in_array_ics((string)$role->externe->typeExterne, $userRoleExists[(string)$role->typeRole])) {
if (!empty($role->externe->identifiantStructureInterne)) {
/* Store identifiantStructureInterne in supannEntiteAffectationPrincipale */
$UUID = (string)$role->externe->identifiantStructureInterne;
$entite = $ldapUuidToCodeEntiteCallback($UUID);
if (isset($entite['supannTypeEntite'])) {
$values['supannAccount']['supannTypeEntiteAffectation'][] = $entite['supannTypeEntite'];
}
$values['supannAccount']['supannEntiteAffectation'][] = $entite['supannCodeEntite'];
$values['supannAccount']['supannEntiteAffectationPrincipale'] = $entite['supannCodeEntite'];
}
$deletion = FALSE;
break 2;
}
......
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