@@ -, +, @@ --- C4/ILSDI/Services.pm | 2 +- opac/ilsdi.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/ILSDI/Services.pm +++ a/C4/ILSDI/Services.pm @@ -644,7 +644,7 @@ sub RenewLoan { # Add renewal if possible my @renewal = CanBookBeRenewed( $borrowernumber, $itemnumber ); - if ( $renewal[0] ) { AddRenewal( $borrowernumber, $itemnumber ); } + if ( $renewal[0] ) { AddRenewal( $borrowernumber, $itemnumber, $item->checkout->branchcode ); } my $issue = $item->checkout; return unless $issue; # FIXME should be handled --- a/opac/ilsdi.pl +++ a/opac/ilsdi.pl @@ -130,7 +130,7 @@ unless ( $cgi->param('service') ) { # Set the userenv C4::Context->_new_userenv(1); C4::Context->set_userenv( - undef, undef, undef, 'CRON', 'CRON', undef, + undef, undef, undef, 'ILSDI', 'ILSDI', undef, undef, undef, undef, undef, undef ); C4::Context->interface('api'); --