@@ -, +, @@ --- C4/Items.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -400,8 +400,9 @@ sub ModDateLastSeen { my $item = Koha::Items->find($itemnumber); $item->datelastseen($today); + my $log = $item->itemlost ? 1 : 0; # If item was lost, record the change to the item $item->itemlost(0) unless $leave_item_lost; - $item->store({ log_action => 0, skip_record_index => $params->{skip_record_index} }); + $item->store({ log_action => $log, skip_record_index => $params->{skip_record_index} }); } =head2 CheckItemPreSave --