[Koha-bugs] [Bug 20462] Duplicate barcodes in batch item deletion cause software error if deleting biblio records.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 29 12:11:54 CEST 2018


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #73297|0                           |1
        is obsolete|                            |

--- Comment #3 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 73411
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73411&action=edit
Bug 20462: Ensure batch item deletion will not delete the same item twice

This has been done on bug 9509 when barcodes are scaned, but not when using a
text file.

Test plan (stolen from Barton on the bug report):
1) Create a text file containing duplicate barcodes

Here's a quick way to do that, substitute INSTANCE for the instance name of
your test server:

sudo koha-mysql INSTANCE <<< "select barcode from items where barcode is not
null limit 3" | sed '1d;p' > /tmp/dup_barcodes.txt

2) Go to Home › Tools › Batch item deletion
3) Click 'Choose File', select the file you created in step 1.
4) Click 'Continue'
5) Note that duplicate items appear in the list of items to batch delete
6) Check 'Delete records if no items remain'
7) This will trigger a software error

Note that entering the barcodes via the 'scan items one by one' text box
removes duplicates in the list, so this only causes problems when uploading a
file.

Signed-off-by: Mark Tompsett <mtompset at hotmail.com>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list