Permalink
Browse files

Merge pull request #708 from metacpan/mickey/fix_release_modules_outp…

…ut_structure

/release/modules: no single-value collapsing on 'modules'
  • Loading branch information...
2 parents c2bd56c + b56b31b commit 258755320babdfd8c559ca24810027ed5e034db8 @mickeyn mickeyn committed Jul 4, 2017
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/MetaCPAN/Document/Release.pm
@@ -1148,8 +1148,10 @@ sub modules {
);
return unless $ret->{hits}{total};
- my @files = map { single_valued_arrayref_to_scalar($_) }
- map +{ %{ $_->{fields} }, %{ $_->{_source} } },
+ my @files = map +{
+ %{ ( single_valued_arrayref_to_scalar( $_->{fields} ) )[0] },
+ %{ $_->{_source} }
+ },
@{ $ret->{hits}{hits} };
return {

0 comments on commit 2587553

Please sign in to comment.