View | Details | Raw Unified | Return to bug 24459
Collapse All | Expand All

(-)a/Koha/Acquisition/Invoice.pm (-2 / +2 lines)
Lines 39-47 suitable for API output. Link Here
39
=cut
39
=cut
40
40
41
sub to_api {
41
sub to_api {
42
    my ( $self ) = @_;
42
    my ( $self, $params ) = @_;
43
43
44
    my $json = $self->SUPER::to_api;
44
    my $json = $self->SUPER::to_api( $params );
45
45
46
    $json->{closed} = ( $self->closedate )
46
    $json->{closed} = ( $self->closedate )
47
                                    ? Mojo::JSON->true
47
                                    ? Mojo::JSON->true
(-)a/Koha/Patron.pm (-3 / +2 lines)
Lines 1558-1566 suitable for API output. Link Here
1558
=cut
1558
=cut
1559
1559
1560
sub to_api {
1560
sub to_api {
1561
    my ( $self ) = @_;
1561
    my ( $self, $params ) = @_;
1562
1562
1563
    my $json_patron = $self->SUPER::to_api;
1563
    my $json_patron = $self->SUPER::to_api( $params );
1564
1564
1565
    $json_patron->{restricted} = ( $self->is_debarred )
1565
    $json_patron->{restricted} = ( $self->is_debarred )
1566
                                    ? Mojo::JSON->true
1566
                                    ? Mojo::JSON->true
1567
- 

Return to bug 24459