Bug 22690: (QA follow-up) Correct variable name

The $from_biblio variable name doesn't exists after a refactoring that
happened. Here we need to re-index both the $self biblio and $to_biblio
biblio.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Joonas Kylmälä 2021-07-22 14:32:09 +00:00 committed by Jonathan Druart
parent c958dec785
commit 3d5349b914

View file

@ -126,7 +126,7 @@ sub move_to_biblio {
}
my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
$indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" );
$indexer->index_records( $from_biblio->biblionumber, "specialUpdate", "biblioserver" );
$indexer->index_records( $to_biblio->biblionumber, "specialUpdate", "biblioserver" );
}