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 <katrin.fischer.83@web.de>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2018-06-07 14:03:11 +00:00
parent 1a01c62f9d
commit b4468f0987
1 changed files with 1 additions and 1 deletions

View File

@ -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; }