Skip to content

Commit 692ab18

Browse files
authored
Merge pull request #1381 from metacpan/haarg/fix-missing-changes
fix changes/by_releases for releases without recorded changelog
2 parents d89f419 + d8cbd60 commit 692ab18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/MetaCPAN/Server/Controller/Changes.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ sub by_releases : Path('by_releases') : Args(0) {
8383
for my $release ( @{ $ret->{releases} } ) {
8484
my ( $author, $name, $path )
8585
= @{$release}{qw(author name changes_file)};
86+
next
87+
unless $path;
8688
my $source = $c->model('Source')->path( $author, $name, $path )
8789
or next;
8890

0 commit comments

Comments
 (0)