| Summary: | Long barcodes in "Add item" throw 500 error | ||
|---|---|---|---|
| Product: | Koha | Reporter: | David Cook <dcook> |
| Component: | Cataloging | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | minor | ||
| Priority: | P5 - low | CC: | m.de.rooy |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40508 | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
David Cook
2025-07-23 00:55:52 UTC
Owen commented on Mattermost about how the default framework should enforce a maxlength for 952$p, which led me to raise bug 40508 where I've added a patch that does that. We could add a DB update here to set maxlength to 20 if kohafield = 'items.barcode". -- Note: While maxlength does prevent new barcodes from being input that are greater than 20 characters, it doesn't prevent you from saving an item that already has a barcode that is longer than that. |