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

return a list, not a string, for multi-valued attributes

parent e05173cf
No related branches found
No related tags found
No related merge requests found
......@@ -138,16 +138,14 @@ sub eduPersonAffiliation {
my ($self) = @_;
my $affiliations = $affiliation{$self->profile()} || [];
return join(', ', @$affiliations);
return @$affiliations;
}
sub eduPersonScopedAffiliation {
my ($self) = @_;
my $affiliations = $scopedAffiliation{$self->profile()} || [];
$affiliations = [ map { $_ . '@' . $self->{scope} } @$affiliations ];
return join(', ', @$affiliations);
return map { $_ . '@' . $self->{scope} } @$affiliations;
}
sub eduPersonPrincipalName {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment