From dc6bc14fc9be4793d8731614db355bf2ba6778f1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Oct 2015 08:45:30 +0000 Subject: [PATCH] Bug 15021: Fix scoping variable in tools/batchMod.pl $tagslib is used in subroutines and should be declare as global. Test plan: On the Batch item modification page, all item fields should be listed, not only the title. Signed-off-by: Josef Moravec Works as expected Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 055e4078a4..5804936536 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -82,7 +82,7 @@ my $itemrecord; my $nextop=""; my @errors; # store errors found while checking data BEFORE saving item. my $items_display_hashref; -my $tagslib = &GetMarcStructure(1); +our $tagslib = &GetMarcStructure(1); my $deleted_items = 0; # Number of deleted items my $deleted_records = 0; # Number of deleted records ( with no items attached ) -- 2.39.5