Bug 21413: Call AddBiblio in list context
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 8 Nov 2018 19:40:06 +0000 (16:40 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 8 Nov 2018 19:59:30 +0000 (19:59 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Items/GetItemsForInventory.t

index af136dc..39e0ae6 100755 (executable)
@@ -252,7 +252,7 @@ sub create_helper_biblio {
         MARC::Field->new( '942', ' ', ' ', c => $itemtype ),
     );
 
-    my $biblio_id = AddBiblio( $record, '' );
+    my ($biblio_id) = AddBiblio( $record, '' );
 
     return Koha::Biblios->find($biblio_id);
 }