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>
This commit is contained in:
Jonathan Druart 2020-10-08 10:58:48 +02:00
parent 64c939ca80
commit 08386fabcb

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,