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

(-)a/Koha/Illrequest.pm (-1 lines)
Lines 1018-1024 sub TO_JSON { Link Here
1018
    my ( $self, $embed ) = @_;
1018
    my ( $self, $embed ) = @_;
1019
1019
1020
    my $object = $self->SUPER::TO_JSON();
1020
    my $object = $self->SUPER::TO_JSON();
1021
    $object->{id_prefix} = $self->id_prefix;
1022
1021
1023
    return $object;
1022
    return $object;
1024
}
1023
}
(-)a/Koha/REST/V1/Illrequests.pm (-1 / +1 lines)
Lines 107-112 sub list { Link Here
107
    my @output = ();
107
    my @output = ();
108
    foreach my $req(@requests) {
108
    foreach my $req(@requests) {
109
        my $to_push = $req->unblessed;
109
        my $to_push = $req->unblessed;
110
        $to_push->{id_prefix} = $req->id_prefix;
110
        foreach my $p(@{$patron_arr}) {
111
        foreach my $p(@{$patron_arr}) {
111
            if ($p->{borrowernumber} == $req->borrowernumber) {
112
            if ($p->{borrowernumber} == $req->borrowernumber) {
112
                $to_push->{patron} = {
113
                $to_push->{patron} = {
113
- 

Return to bug 21835