Koha-clms/serials
Emmi Takkinen fdf37a2630
Bug 42699: Display Koha error message when attempting to save non-unique barcode in Edit serials
When you edit an already received serial from Serial collection page
using Edit serials and edit items buttons, and try to save a barcode
that already exists on another item, saving leads to Error 500.
There is no barcode validation for editing serials, this patch adds it.

To test:
1. Go to serials module.
2. Search for a serial that is not expired to edit and click on the title.
3. Go to Serial collection from the menu.
4. Use the checkboxes to mark an already received (eg. usually older,
arrived, not expected) serial and click Edit serials.
5. Click on Edit item.
6. Replace the barcode with a unique barcode that is already in use
and hit save.
=> Error 500 is raised.
7. Apply this patch and restart services.
8. Attempt to save serial with already used barcode again.
=> A standard Koha error message is displayed stating that barcode
must be unique.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-07-27 12:13:09 +00:00
..
acqui-search-result.pl Bug 42078: Allow vendor ID searches on serial subscription vendor search page 2026-06-19 15:39:13 +00:00
acqui-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
checkexpiration.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
claims.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
create-numberpattern.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
lateissues-export.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
reorder_members.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
routing-preview.pl Bug 41846: Fix nl2br to happen after html escaping 2026-05-05 13:41:59 -06:00
routing.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
serials-collection.pl Bug 38009: Add a generate next button in serials receive page 2026-05-08 16:05:46 -06:00
serials-edit.pl Bug 42699: Display Koha error message when attempting to save non-unique barcode in Edit serials 2026-07-27 12:13:09 +00:00
serials-home.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
serials-search.pl Bug 42844: Fix broken subscription search when using additional fields as seach criteria 2026-06-15 15:59:31 +00:00
showpredictionpattern.pl Bug 37796: (follow-up) Correct call in showpredictionpattern.pl 2025-12-17 13:24:24 -07:00
subscription-add.pl Bug 38061: Add a checkbox to determine whether collection table issues should be pre-selected 2026-01-22 10:02:19 -07:00
subscription-batchedit.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-bib-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-detail.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-frequencies.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-frequency.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-history.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-numberpattern.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-numberpatterns.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-renew.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
viewalerts.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00