From a85bce994d9ca8848b04c0e5771f4bd71922735c Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= <joonas.kylmala@iki.fi>
Date: Mon, 16 May 2022 18:56:05 +0000
Subject: [PATCH] Bug 30776: import missing subroutine to fix
 import_webservice_batch.pl
Content-Type: text/plain; charset=utf-8

Test plan:
 1) Apply patch and notice the following error is gone:
    $ perl misc/cronjobs/import_webservice_batch.pl
    Undefined subroutine &main::GetStagedWebserviceBatches called at misc/cronjobs/import_webservice_batch.pl line 46.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 misc/cronjobs/import_webservice_batch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/cronjobs/import_webservice_batch.pl b/misc/cronjobs/import_webservice_batch.pl
index 5274410d73..ae9aa8614c 100755
--- a/misc/cronjobs/import_webservice_batch.pl
+++ b/misc/cronjobs/import_webservice_batch.pl
@@ -23,7 +23,7 @@ use utf8;
 
 use Getopt::Long qw( GetOptions );
 use Koha::Script -cron;
-use C4::ImportBatch qw( BatchCommitRecords );
+use C4::ImportBatch qw( BatchCommitRecords GetStagedWebserviceBatches );
 
 my ($help, $framework);
 
-- 
2.20.1