[Koha-bugs] [Bug 21141] Batch item modification tool throws error 500 when an itemnumber is invalid

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 6 20:32:23 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21141

--- Comment #8 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 77497
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77497&action=edit
Bug 21141: Handle non-existent itemnumbers in batch item modification/deletion

The itemnumber list passed from a file in the batch item
modification/deletion tools is not tested.
Like barcodes we should make sure they refer to a valid items in the DB.

Test plan:
- Create a file with barcodes, itemnumbers and random lines
- Use the batch item modification and deletion tools with this file
You should see a table with a list of invalid barcodes and itemnumbers.

Without this patch you got the following error:
Can't call method "title" on an undefined value at
/home/vagrant/kohaclone/tools/batchMod.pl line 580

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list