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

(-)a/Koha/ILL/Backend/Standard.pm (+2 lines)
Lines 1000-1005 sub add_request { Link Here
1000
    } keys %{$request_details};
1000
    } keys %{$request_details};
1001
    $request->extended_attributes( \@request_details_array );
1001
    $request->extended_attributes( \@request_details_array );
1002
1002
1003
    $request->after_created;
1004
1003
    return $request;
1005
    return $request;
1004
}
1006
}
1005
1007
(-)a/Koha/ILL/Request.pm (-1 / +26 lines)
Lines 2052-2057 sub store { Link Here
2052
    return $ret;
2052
    return $ret;
2053
}
2053
}
2054
2054
2055
=head3 after_created
2056
2057
    $request->after_created;
2058
2059
Actions to be done after the request has been fully created
2060
2061
=cut
2062
2063
sub after_created {
2064
    my ($self) = @_;
2065
2066
    C4::Stats::UpdateStats(
2067
        {
2068
            borrowernumber => $self->borrowernumber // undef,
2069
            branch         => $self->branchcode,
2070
            categorycode   => $self->patron ? $self->patron->categorycode : undef,
2071
            ccode          => undef,
2072
            illrequest_id  => $self->illrequest_id,
2073
            itemnumber     => undef,
2074
            itemtype       => undef,
2075
            location       => undef,
2076
            type           => 'ill_request',
2077
        }
2078
    );
2079
}
2080
2055
=head3 requested_partners
2081
=head3 requested_partners
2056
2082
2057
    my $partners_string = $request->requested_partners;
2083
    my $partners_string = $request->requested_partners;
2058
- 

Return to bug 37901