From 9f0d6cb1b5b2ae05b38a866c8cda4cd52d692330 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Aug 2020 10:51:39 +0200 Subject: [PATCH] Bug 18501: Adjust condition for flagging an item found --- Koha/Item.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index a2976d2ce8..87c7e3f247 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -171,7 +171,9 @@ sub store { # If item was lost, it has now been found, reverse any list item charges if necessary. if ( exists $updated_columns{itemlost} and $self->itemlost != $updated_columns{itemlost} - and $updated_columns{itemlost} >= 1 ) { + and $self->itemlost >= 1 + and $updated_columns{itemlost} <= 0 + ) { $self->_set_found_trigger; $self->paidfor(''); } -- 2.20.1