[Koha-bugs] [Bug 30831] Incorrect setting of error when importing items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 23 14:29:10 CEST 2022


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

--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 135262
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135262&action=edit
Bug 30831: Store error in import_error column

To test:
1 - Export a record with items from the catalog
2 - Stage the record for import
3 - Import the batch
4 - Silent failure? Batch stuck in 'importing
5 - Bonus points/QA team, otherwise skip:
    Stage again, go to manage batch, before clicking 'Import this batch'
    a - Right click and inspect the submit button
    b - Scroll to <form> element
    c - Right click and 'Edit as HTML'
    d - Add '?runinbackground=0' to form action
    e - Delete the hidden input for 'runinbackground' a few lines down
    f - Click 'Import'
    g - Error:
[Mon May 23 10:47:43.583448 2022] [cgi:error] [pid 3114] [client
172.18.0.1:60936] AH01215: C4::ImportBatch::BatchCommitItems(): DBI Exception:
DBD::mysql::st execute failed: Incorrect integer value: 'duplicate item
barcode' for column `koha_kohadev`.`import_items`.`itemnumber` at row 1 at
/kohadevbox/koha/C4/ImportBatch.pm line 652:
/kohadevbox/koha/tools/manage-marc-import.pl, referer:
http://localhost:8081/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=2
6 - Apply patch
7 - Stage and import record again
8 - Import success!
9 - Note results report 'Number of items ignored because of duplicate barcode'
equal to number of items on record

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


More information about the Koha-bugs mailing list