From 797b0a148c07a00ea6efca15250cc9f931c84423 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 29 Oct 2015 07:48:02 -0400 Subject: [PATCH] Bug 15079 - Batch Delete Records Error When using the batch deletion tool, if the script attempts to delete an undeletable item, the script will die with the error: Label not found for "next BIBLIONUMBER" at /usr/share/koha/intranet/cgi-bin/tools/batch_delete_records.pl line 172. Test Plan: 1) Attempt to batch delete a record with an item that cannot be deleted 2) Note error 3) Apply this patch 4) Repeat step 1 5) Note the error no longer occurs --- tools/batch_delete_records.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/batch_delete_records.pl b/tools/batch_delete_records.pl index b0523d5..65cbf21 100755 --- a/tools/batch_delete_records.pl +++ b/tools/batch_delete_records.pl @@ -169,7 +169,7 @@ if ( $op eq 'form' ) { error => ($@ ? $@ : $error), }; $dbh->rollback; - next BIBLIONUMBER; + next RECORD_IDS; } } -- 1.7.2.5