Skip to content

Commit

Permalink
fix ES query results reading (single values wrapped in arrayref)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Jun 9, 2016
1 parent a30b65d commit 8a7d4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Web/Controller/Author.pm
Expand Up @@ -106,7 +106,8 @@ sub releases : Chained('root') PathPart Args(0) {
my ( $author, $releases ) = ( $author_cv->recv, $releases_cv->recv );
$c->detach('/not_found') unless ( $author->{pauseid} );

my @releases = map { $_->{fields} } @{ $releases->{hits}->{hits} };
my @releases = map { single_valued_arrayref_to_scalar( $_->{fields} ) }
@{ $releases->{hits}->{hits} };

my $pageset = Data::Pageset->new(
{
Expand Down

0 comments on commit 8a7d4de

Please sign in to comment.