From 69583dd4ce3894ad03080403f949f75da4e10873 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 Signed-off-by: Martin Renvoize --- Koha/Item.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 74f09aba63..f2ca45d81b 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -172,7 +172,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