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.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 08386fabcb)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2020-10-08 10:58:48 +02:00 committed by Lucas Gass
parent d9599a6d33
commit 4b2e6d56f2
1 changed files with 1 additions and 1 deletions

View File

@ -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,