From 03d76a6371000ecbcc64ac10a12b3a77e99c7b08 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Oct 2020 10:58:48 +0200 Subject: [PATCH] Bug 25913: Get the correct return of AddBiblio We need the parenthesis to get the biblionumber and not the biblioitemnumber, in case there is a discrepancy. --- t/db_dependent/Koha/Biblio.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index 727c5b57de..cf359edf32 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -135,7 +135,7 @@ subtest 'get_coins and get_openurl' => sub { my $record = MARC::Record->new(); $record->append_fields( MARC::Field->new('100','','','a' => 'Author 2'), MARC::Field->new('880','','','a' => 'Something') ); - my $biblionumber = C4::Biblio::AddBiblio($record, ''); + my ( $biblionumber ) = C4::Biblio::AddBiblio($record, ''); my $biblio_no_title = Koha::Biblios->find($biblionumber); is( $biblio_no_title->get_coins, -- 2.20.1