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 { ...@@ -138,16 +138,14 @@ sub eduPersonAffiliation {
my ($self) = @_; my ($self) = @_;
my $affiliations = $affiliation{$self->profile()} || []; my $affiliations = $affiliation{$self->profile()} || [];
return join(', ', @$affiliations); return @$affiliations;
} }
sub eduPersonScopedAffiliation { sub eduPersonScopedAffiliation {
my ($self) = @_; my ($self) = @_;
my $affiliations = $scopedAffiliation{$self->profile()} || []; my $affiliations = $scopedAffiliation{$self->profile()} || [];
$affiliations = [ map { $_ . '@' . $self->{scope} } @$affiliations ]; return map { $_ . '@' . $self->{scope} } @$affiliations;
return join(', ', @$affiliations);
} }
sub eduPersonPrincipalName { sub eduPersonPrincipalName {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment