Bug 15158: Fix t/db_dependent/Circulation/GetTopIssues.t

create_biblio was returning biblioitemnumber instead of biblionumber.
This can cause problems when biblionumber and biblioitemnumber are not
the same.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2015-11-09 14:41:00 +01:00 committed by Tomas Cohen Arazi
parent 0cbc65111c
commit 5e44c97829

View file

@ -107,5 +107,7 @@ sub create_biblio {
MARC::Field->new($it_tag, ' ', ' ', $it_subfield => $itemtype),
);
return AddBiblio($record, '');
my ($biblionumber) = AddBiblio($record, '');
return $biblionumber;
}