From 91d3dd3fef966d693894c39e4216b5230d34d501 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 --- 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 a7a8638d195..f9d56fcd187 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.20.1