diff --git a/C4/Circulation.pm b/C4/Circulation.pm index e8c65a27876..fa3e866e672 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -41,6 +41,7 @@ use Algorithm::CheckDigits; use Data::Dumper; use Koha::Account; use Koha::AuthorisedValues; +use Koha::Biblioitems; use Koha::DateUtils; use Koha::Calendar; use Koha::IssuingRules; diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index 37acd368148..71175386edc 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -190,7 +190,7 @@ subtest "AddReturn logging on statistics table (item-level_itypes=0)" => sub { t::lib::Mocks::mock_preference( "IssueLog", 1 ); t::lib::Mocks::mock_preference( "ReturnLog", 1 ); - # Set item-level item types + # Set biblio level item types t::lib::Mocks::mock_preference( "item-level_itypes", 0 ); # Create an itemtype for biblio-level item type @@ -222,6 +222,7 @@ subtest "AddReturn logging on statistics table (item-level_itypes=0)" => sub { source => 'Item', value => { biblionumber => $biblionumber, + biblioitemnumber => $biblioitemnumber, homebranch => $branch, holdingbranch => $branch, itype => $ilevel_itemtype @@ -231,6 +232,7 @@ subtest "AddReturn logging on statistics table (item-level_itypes=0)" => sub { source => 'Item', value => { biblionumber => $biblionumber, + biblioitemnumber => $biblioitemnumber, homebranch => $branch, holdingbranch => $branch, itype => undef