diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 1f6ae4d752..8b9ac6dc6f 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2172,6 +2172,9 @@ sub MarkIssueReturned { # Update the returndate $dbh->do( $query, undef, @bind ); + # We just updated the returndate, so we need to refetch $issue + $issue->discard_changes; + # Create the old_issues entry my $old_checkout = Koha::OldIssue->new($issue->unblessed)->store;