TT#68300 NGCP::API::Client: Get the page rows from the _opts hash

When moving to per-object options, we switched to set the page rows
directly from the constructor, and switched from the _rows to
_opts.page_rows.

Change-Id: Ia663dbba4a330813d67f6bbdbb50ad37419ad5d5
Fixes: commit 97c0fb6412
changes/69/34269/1
Guillem Jover 6 years ago
parent 9524c1c248
commit d5e57595d4

@ -146,7 +146,7 @@ sub next_page {
my %params = $collection_url->query_form;
$params{page} //= 1;
$params{rows} //= $self->{_rows};
$params{rows} //= $self->{_opts}{page_rows};
$collection_url->query_form(\%params);
$self->{_collection_url} = $collection_url;
@ -176,7 +176,7 @@ sub next_page {
sub set_page_rows {
my ($self, $rows) = @_;
$self->{_rows} = $rows;
$self->{_opts}{page_rows} = $rows;
undef $self->{_collection_url};
return;

Loading…
Cancel
Save