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:
parent
0cbc65111c
commit
5e44c97829
1 changed files with 3 additions and 1 deletions
|
@ -107,5 +107,7 @@ sub create_biblio {
|
|||
MARC::Field->new($it_tag, ' ', ' ', $it_subfield => $itemtype),
|
||||
);
|
||||
|
||||
return AddBiblio($record, '');
|
||||
my ($biblionumber) = AddBiblio($record, '');
|
||||
|
||||
return $biblionumber;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue