Bug 21798: (QA follow-up) Fix Biblios.t
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 13 Dec 2018 12:51:20 +0000 (13:51 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 28 Jan 2019 18:53:28 +0000 (18:53 +0000)
Global symbol "$bibnum" requires explicit package name

Test plan:
Run test

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

t/db_dependent/Koha/Biblios.t

index 2ea000d..a3892c5 100644 (file)
@@ -175,7 +175,7 @@ subtest 'can_be_transferred' => sub {
          .'items is already located at to-library, then the transfer is possible.');
     $item->holdingbranch($library1->branchcode)->store;
     my ($item_bibnum2, $item_bibitemnum2, $itemnumber2)
-        = AddItem({ homebranch => $library1->branchcode, holdingbranch => $library3->branchcode }, $bibnum);
+        = AddItem({ homebranch => $library1->branchcode, holdingbranch => $library3->branchcode }, $biblio->biblionumber);
     my $item2  = Koha::Items->find($itemnumber2);
     is($biblio->can_be_transferred({ to => $library2 }), 1, 'Given we added '
         .'another item that should have no transfer limits applying on, then '