From 754b0478c7c1ac9a5008bda0d36cfdb5df937e3b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 2 Jun 2022 12:55:25 +0200 Subject: [PATCH] Bug 29697: (follow-up) Use flag embed_items --- Koha/SearchEngine/Elasticsearch/Indexer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch/Indexer.pm b/Koha/SearchEngine/Elasticsearch/Indexer.pm index 73665505fa7..3fa9d477c14 100644 --- a/Koha/SearchEngine/Elasticsearch/Indexer.pm +++ b/Koha/SearchEngine/Elasticsearch/Indexer.pm @@ -338,7 +338,7 @@ sub index_records { sub _get_record { my ( $self, $record_id ) = @_; return $self->index eq $Koha::SearchEngine::BIBLIOS_INDEX - ? Koha::Biblios->find($id)->metadata->record({ embed_items => 1 }) + ? Koha::Biblios->find($record_id)->metadata->record({ embed_items => 1 }) : C4::AuthoritiesMarc::GetAuthority($record_id); } -- 2.25.1