Skip to content

Commit

Permalink
fix(createentry): fix the bazar mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
acheype committed Feb 16, 2024
1 parent 64786f9 commit d2360c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/login-sso.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ function createUserBazarEntry($bazarMapping, $bazarEntryId, $user_title_format,
foreach ($bazarMapping['fields'] as $yeswikiField => $ssoField) {
if (!isset($ssoUser[$ssoField])) {
$fiche[$yeswikiField] = '';
} else if (!empty($fieldTransformed['field'])){
} else {
$transformDone = false;
if (isset($bazarMapping['fields_transformed'])){
if (!empty($bazarMapping['fields_transformed'])) {
foreach ($bazarMapping['fields_transformed'] as $fieldTransformed) {
if ($fieldTransformed['field'] == $yeswikiField) {
// transform the sso field according to the pattern and replacement formats defined in the config file
Expand Down

0 comments on commit d2360c1

Please sign in to comment.