From dd9ef9bdc01a531ac6fb113d12c4e635442f8fc9 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 Signed-off-by: Jonathan Druart --- Koha/Items.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 7349bc4f38..d0c67e1db0 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.39.5