Bug 15021: Fix scoping variable in tools/batchMod.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Oct 2015 08:45:30 +0000 (08:45 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Oct 2015 13:10:15 +0000 (10:10 -0300)
$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 <josef.moravec@gmail.com>
Works as expected

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
tools/batchMod.pl

index 055e407..5804936 100755 (executable)
@@ -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 )