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

(-)a/C4/ILSDI/Services.pm (-1 / +1 lines)
Lines 644-650 sub RenewLoan { Link Here
644
644
645
    # Add renewal if possible
645
    # Add renewal if possible
646
    my @renewal = CanBookBeRenewed( $borrowernumber, $itemnumber );
646
    my @renewal = CanBookBeRenewed( $borrowernumber, $itemnumber );
647
    if ( $renewal[0] ) { AddRenewal( $borrowernumber, $itemnumber ); }
647
    if ( $renewal[0] ) { AddRenewal( $borrowernumber, $itemnumber, $item->checkout->branchcode ); }
648
648
649
    my $issue = $item->checkout;
649
    my $issue = $item->checkout;
650
    return unless $issue; # FIXME should be handled
650
    return unless $issue; # FIXME should be handled
(-)a/opac/ilsdi.pl (-2 / +1 lines)
Lines 130-136 unless ( $cgi->param('service') ) { Link Here
130
# Set the userenv
130
# Set the userenv
131
C4::Context->_new_userenv(1);
131
C4::Context->_new_userenv(1);
132
C4::Context->set_userenv(
132
C4::Context->set_userenv(
133
    undef, undef, undef, 'CRON', 'CRON', undef,
133
    undef, undef, undef, 'ILSDI', 'ILSDI', undef,
134
    undef, undef, undef, undef,  undef
134
    undef, undef, undef, undef,  undef
135
);
135
);
136
C4::Context->interface('api');
136
C4::Context->interface('api');
137
- 

Return to bug 24754