From 233e92f8996958e66363557daec1859a4f76c93b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 May 2024 14:01:28 +0200 Subject: [PATCH] Bug 36923: Remove warnings from Holds/LocalHoldsPriority.t t/db_dependent/Holds/LocalHoldsPriority.t .. 1/7 Use of uninitialized value in numeric gt (>) at /kohadevbox/koha/C4/Reserves.pm line 866. t/db_dependent/Holds/LocalHoldsPriority.t .. 2/7 Use of uninitialized value in numeric gt (>) at /kohadevbox/koha/C4/Reserves.pm line 866. Use of uninitialized value in numeric gt (>) at /kohadevbox/koha/C4/Reserves.pm line 866. Use of uninitialized value in numeric gt (>) at /kohadevbox/koha/C4/Reserves.pm line 866. t/db_dependent/Holds/LocalHoldsPriority.t .. 5/7 Use of uninitialized value in numeric gt (>) at /kohadevbox/koha/C4/Reserves.pm line 866. t/db_dependent/Holds/LocalHoldsPriority.t .. ok All tests successful. We didn't have the default values generated by the DBMS Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer (cherry picked from commit 6827c9061ffc57c2e1f7087aced8ce2e65196558) Signed-off-by: Fridolin Somers --- t/db_dependent/Holds/LocalHoldsPriority.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Holds/LocalHoldsPriority.t b/t/db_dependent/Holds/LocalHoldsPriority.t index 95af26981f..7638130e20 100755 --- a/t/db_dependent/Holds/LocalHoldsPriority.t +++ b/t/db_dependent/Holds/LocalHoldsPriority.t @@ -51,7 +51,7 @@ my $item = Koha::Item->new( itype => $itemtype, exclude_from_local_holds_priority => 0, }, -)->store; +)->store->get_from_storage; my @branchcodes = ( $library1->{branchcode}, $library2->{branchcode}, $library3->{branchcode}, $library4->{branchcode}, $library3->{branchcode}, $library4->{branchcode} ); my $patron_category = $builder->build({ source => 'Category', value => {exclude_from_local_holds_priority => 0} }); -- 2.39.5