Bug 15079: Batch Delete Records Error
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 29 Oct 2015 11:48:02 +0000 (07:48 -0400)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 10 Dec 2015 23:25:15 +0000 (12:25 +1300)
commitdf64a9ca8a9574463fd6ef5e170ce14eeacfee00
tree0acbb1b02910b7fa080e3a8b2fee6ba0985a6c00
parentb46754d842bc6a03ca3051307e4f32f0892b733f
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

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised. Follow comment 5 to reproduce the issue

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
I have not tested this patch, but looking at the code it is obviously a mistake.
If an error occured, we rollback and skip this record.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

(cherry picked from commit 706a31b50d52ef1ba48c568d7e60c376cfe87983)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit dc39e4b410c173d497ce41651dbf39d6a72dd461)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
tools/batch_delete_records.pl