Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(ldap): login after manual import
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 committed Jun 3, 2019
1 parent 04e51d8 commit 252efb3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,13 @@
$arrayToReturn[$key] = array_intersect_key($_POST["contact_select"][$key], $selectedUsers);
}

// restoring the $_POST['select'] array in the filtered results, in case we need it
// restoring the filtered $_POST['contact_select']['select'] as it's needed in some DB-Func.php functions
$arrayToReturn['select'] = $selectedUsers;
insertLdapContactInDB($arrayToReturn);
$_POST['contact_select'] = $arrayToReturn;
unset($selectedUsers);
unset($arrayToReturn);

insertLdapContactInDB($_POST["contact_select"]);
}
$form->freeze();
$valid = true;
Expand Down

0 comments on commit 252efb3

Please sign in to comment.