From a690ba2b26ef6247cdf336077311e4afb0e94473 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 22 Sep 2020 17:38:03 +0000 Subject: [PATCH] Bug 25265: Fix copy paste error for parameter Signed-off-by: Bob Bennhoff Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- 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 bfb0d08cfc..49437cd268 100644 --- a/Koha/SearchEngine/Elasticsearch/Indexer.pm +++ b/Koha/SearchEngine/Elasticsearch/Indexer.pm @@ -298,7 +298,7 @@ to Zebra as well. sub index_records { my ( $self, $biblionumbers, $op, $server, $records ) = @_; $biblionumbers = [$biblionumbers] if ref $biblionumbers ne 'ARRAY' && defined $biblionumbers; - $records = [$records] if ref $biblionumbers ne 'ARRAY' && defined $records; + $records = [$records] if ref $records ne 'ARRAY' && defined $records; if ( $op eq 'specialUpdate' ) { unless ($records) { foreach my $biblionumber ( @$biblionumbers ){ -- 2.39.5