Skip to content
Snippets Groups Projects
Commit a100db5e authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

filter out duplicated contacts

parent 6cd1ac44
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ use CGI; ...@@ -7,6 +7,7 @@ use CGI;
use English qw(-no_match_vars); use English qw(-no_match_vars);
use Template; use Template;
use Log::Any::Adapter; use Log::Any::Adapter;
use List::MoreUtils qw(uniq);
use IdPAccountManager::Data::TestAccount; use IdPAccountManager::Data::TestAccount;
use IdPAccountManager::Data::AuthenticationToken; use IdPAccountManager::Data::AuthenticationToken;
...@@ -277,7 +278,7 @@ sub req_select_sp { ...@@ -277,7 +278,7 @@ sub req_select_sp {
# complete persistent object # complete persistent object
$provider->displayname($sp->{display_name}); $provider->displayname($sp->{display_name});
$provider->contacts(map { $_->{EmailAddress} } @{$sp->{contacts}}) $provider->contacts(uniq map { $_->{EmailAddress} } @{$sp->{contacts}})
if $sp->{contacts}; if $sp->{contacts};
# save in DB # save in DB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment