Skip to content

Commit

Permalink
Revert "Revert "Bug fix: fix param order (GH#1126)""
Browse files Browse the repository at this point in the history
This reverts commit 781f214.

The front end had been supplying the parameters incorrectly, and the API
was accepting them incorrectly. So the front end was displaying
correctly, but the API was incorrect. Fixing the API broke the
pagination, which led to the original revert. The front end has now been
fixed, so the API fix needs to be re-applied.
  • Loading branch information
haarg committed Sep 25, 2023
1 parent 1618c24 commit 4bc1f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Release.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub latest_by_author : Path('latest_by_author') : Args(1) {

sub all_by_author : Path('all_by_author') : Args(1) {
my ( $self, $c, $pauseid ) = @_;
my @params = @{ $c->req->params }{qw( page page_size )};
my @params = @{ $c->req->params }{qw( page_size page )};
$c->stash_or_detach(
$self->model($c)->all_by_author( $pauseid, @params ) );
}
Expand Down

0 comments on commit 4bc1f68

Please sign in to comment.