Bug 18501: Adjust condition for flagging an item found

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-08-14 10:51:39 +02:00
parent 9aa5eb713d
commit 0a651f9ee7
1 changed files with 3 additions and 1 deletions

View File

@ -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('');
}