diff --git a/C4/Circulation.pm b/C4/Circulation.pm index dc7334a150..55f0c2786e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2073,6 +2073,8 @@ sub MarkIssueReturned { WHERE borrowernumber = ? AND itemnumber = ?"); $sth_del->execute($borrowernumber, $itemnumber); + + ModItem( { 'onloan' => undef }, undef, $itemnumber ); } =head2 _debar_user_on_return diff --git a/C4/Items.pm b/C4/Items.pm index f8e2121bfa..70af5ef98d 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -540,8 +540,6 @@ sub ModItem { $item->{'itemnumber'} = $itemnumber or return; - $item->{onloan} = undef if $item->{itemlost}; - my @fields = qw( itemlost withdrawn ); # Only call GetItem if we need to set an "on" date field