From 8fb74a7a3f3d74dbb05b21d51da2e161c971ad7b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Oct 2021 11:40:09 +0200 Subject: [PATCH] Bug 28445: Correctly count modified items --- Koha/Items.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 7349bc4f387..d0c67e1db03 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -333,10 +333,10 @@ sub batch_update { { skip_record_index => 1 } ) if $item->itemlost and not $itemlost_pre; - - push @modified_itemnumbers, $item->itemnumber if $modified || $modified_holds_priority; - $modified_fields += $modified + $modified_holds_priority; } + + push @modified_itemnumbers, $item->itemnumber if $modified || $modified_holds_priority; + $modified_fields += $modified + $modified_holds_priority; })}; if ( $callback ) { -- 2.25.1