Skip to content

Commit

Permalink
Merge pull request #738 from metacpan/mickey/GH736_fix_param_passing_…
Browse files Browse the repository at this point in the history
…reverse_deps

Pass missing params to reverse_dependencies
  • Loading branch information
mickeyn committed Nov 1, 2017
2 parents 90f60f2 + 6949816 commit 27400c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MetaCPAN/Server/Controller/ReverseDependencies.pm
Expand Up @@ -14,7 +14,10 @@ with 'MetaCPAN::Server::Role::JSONP';
sub dist : Path('dist') : Args(1) {
my ( $self, $c, $dist ) = @_;
$c->stash_or_detach(
$c->model('CPAN::Release')->reverse_dependencies($dist) );
$c->model('CPAN::Release')->reverse_dependencies(
$dist, @{ $c->req->params }{qw< page page_size sort >}
)
);
}

sub module : Path('module') : Args(1) {
Expand Down

0 comments on commit 27400c4

Please sign in to comment.