From 02f57e92b99778ea83dfa78617b302fed43a5af5 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 (cherry picked from commit 233e92f8996958e66363557daec1859a4f76c93b) Signed-off-by: Lucas Gass --- 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 85833ca8d5..ae169104a1 100755 --- a/t/db_dependent/Holds/LocalHoldsPriority.t +++ b/t/db_dependent/Holds/LocalHoldsPriority.t @@ -50,7 +50,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