Bug 20893: batchRebuildItemsTables.pl has incorrect parameter
authorNick Clemens <nick@bywatersolutions.com>
Thu, 7 Jun 2018 14:03:11 +0000 (14:03 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 29 Jun 2018 19:40:16 +0000 (19:40 +0000)
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>

misc/batchRebuildItemsTables.pl

index e0499c0..0e611dd 100755 (executable)
@@ -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; }