@@ -, +, @@ $ kshell k$ prove t/db_dependent/Koha/Patron.t \ t/db_dependent/Koha/Acquisition/Invoice.t --- Koha/Acquisition/Invoice.pm | 4 ++-- Koha/Patron.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/Koha/Acquisition/Invoice.pm +++ a/Koha/Acquisition/Invoice.pm @@ -39,9 +39,9 @@ suitable for API output. =cut sub to_api { - my ( $self ) = @_; + my ( $self, $params ) = @_; - my $json = $self->SUPER::to_api; + my $json = $self->SUPER::to_api( $params ); $json->{closed} = ( $self->closedate ) ? Mojo::JSON->true --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -1558,9 +1558,9 @@ suitable for API output. =cut sub to_api { - my ( $self ) = @_; + my ( $self, $params ) = @_; - my $json_patron = $self->SUPER::to_api; + my $json_patron = $self->SUPER::to_api( $params ); $json_patron->{restricted} = ( $self->is_debarred ) ? Mojo::JSON->true --