From 04ded9aee2c921dc6389df1485a1c36c91e7cb2a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 9 Apr 2021 11:39:36 +0200 Subject: [PATCH] Bug 28028: (bug 23463 follow-up) Fix fix_onloan.pl There is an obvious error in the script, the name of the method is missing Undefined subroutine &Koha::Items called at misc/migration_tools/fix_onloan.pl line 13. Test plan: Run the script and confirm that it does not explode Signed-off-by: David Nind --- misc/migration_tools/fix_onloan.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/migration_tools/fix_onloan.pl b/misc/migration_tools/fix_onloan.pl index a7a8638d19..f9d56fcd18 100755 --- a/misc/migration_tools/fix_onloan.pl +++ b/misc/migration_tools/fix_onloan.pl @@ -10,7 +10,7 @@ use Koha::Items; # and put it in the MARC::Record of the item # -my $items = Koha::Items->({ onloan => { '!=' => undef } }); +my $items = Koha::Items->search({ onloan => { '!=' => undef } }); $|=1; while ( my $item = $items->next ) { -- 2.11.0