]> git.koha-community.org Git - koha.git/commit
Bug 21141: Handle non-existent itemnumbers in batch item modification/deletion
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 6 Aug 2018 18:26:49 +0000 (15:26 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 9 Aug 2018 10:54:54 +0000 (10:54 +0000)
commite8e29d3140007b9b92d97ed2f1df7445c6eeb4f9
treead52ef579ec4446c1ac4beb51912f6d894f4df87
parent6e7fd122147bafcd2b66c1ecfde2e9be1cdcccef
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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt
tools/batchMod.pl