From 4f98d34c0fe8bb483869678e955881276e5ce257 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 7 Jun 2018 14:03:11 +0000 Subject: [PATCH] Bug 20893: batchRebuildItemsTables.pl has incorrect parameter To test: 1 - run batchRebuildItemsTables.pl with a valid biblionumber perl /usr/share/koha/bin/batchRebuildItemsTables.pl --where biblio.biblionumber=38483 -c 2 - Note it says 'undefined biblionumber 3 - Apply patch 4 - Do it again 5 - It works! Signed-off-by: Katrin Fischer Signed-off-by: Julian Maurice Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 737702f9756f89f6f75b2a3323e03738234fa143) Signed-off-by: Fridolin Somers --- misc/batchRebuildItemsTables.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/batchRebuildItemsTables.pl b/misc/batchRebuildItemsTables.pl index e0499c0cab..0e611dd701 100755 --- a/misc/batchRebuildItemsTables.pl +++ b/misc/batchRebuildItemsTables.pl @@ -69,7 +69,7 @@ while ( my ( $biblionumber, $biblioitemnumber, $frameworkcode ) = $sth->fetchrow $count++; warn $count unless $count % 1000; my $record = GetMarcBiblio({ - biblionummber => $biblionumber, + biblionumber => $biblionumber, embed_items => 1 }); unless ($record) { push @errors, "bad record biblionumber $biblionumber"; next; } -- 2.39.5