@@ -, +, @@ $ kshell k$ prove t/db_dependent/Koha/Checkouts.t --- Koha/Checkouts.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/Koha/Checkouts.pm +++ a/Koha/Checkouts.pm @@ -82,12 +82,12 @@ sub automatic_checkin { { prefetch => 'item'} ); - while(my $checkout = $due_checkouts->next) { - if($checkout->item->itemtype->automatic_checkin) { - C4::Circulation::AddReturn($checkout->item->barcode, $checkout->branchcode); + while ( my $checkout = $due_checkouts->next ) { + if ( $checkout->item->itemtype->automatic_checkin ) { + C4::Circulation::AddReturn( $checkout->item->barcode, + $checkout->branchcode, undef, dt_from_string($checkout->date_due) ); } } - } =head3 type --