From bbaa4dae11504930654085e2563e067f8f7244af Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 7 Dec 2015 15:25:25 +0100 Subject: [PATCH] Bug 15325: Fix --table option of rebuild_zebra.pl Option's value given on command line was never used and 'biblioitems' was used instead. --- misc/migration_tools/rebuild_zebra.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index dd97170..beaf4d3 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -452,7 +452,7 @@ sub select_all_authorities { sub select_all_biblios { $table = 'biblioitems' - if grep { /^$table$/ } @tables_allowed_for_select; + unless grep { /^$table$/ } @tables_allowed_for_select; my $strsth = qq{ SELECT biblionumber FROM $table }; $strsth.=qq{ WHERE $where } if ($where); $strsth.=qq{ LIMIT $length } if ($length && !$offset); -- 1.9.1