From e8ba35b2fa8610046c0502b5c97cd5d862ce20d5 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 8 Oct 2021 10:44:00 -0300 Subject: [PATCH] Bug 29197: Add missing import in commit_file.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds a new method import to the commit_file.pl script. To test: 1. Have MARC data staged 2. Run: $ kshell k$ perl misc/commit_file.pl --list-batches => FAIL: You get Undefined subroutine &main::GetAllImportBatches called at misc/commit_file.pl line 68. 3. Apply this patch 4. Repeat 2 => SUCCESS: You get the list of batches 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- misc/commit_file.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/commit_file.pl b/misc/commit_file.pl index 2a243439d0..efabdfc429 100755 --- a/misc/commit_file.pl +++ b/misc/commit_file.pl @@ -11,7 +11,7 @@ BEGIN { use Koha::Script; use C4::Context; -use C4::ImportBatch qw( GetImportBatch BatchCommitRecords BatchRevertRecords ); +use C4::ImportBatch qw( GetAllImportBatches GetImportBatch BatchCommitRecords BatchRevertRecords ); use Getopt::Long qw( GetOptions ); $| = 1; -- 2.39.5