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 ) {