]> git.koha-community.org Git - koha.git/commit
Bug 34346: Show error message instead of 500 for duplicate tags
authorDavid Cook <dcook@prosentient.com.au>
Thu, 8 Aug 2024 01:19:46 +0000 (01:19 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 19 Aug 2024 15:29:53 +0000 (17:29 +0200)
commita24829939e01d6027f725ba0e3ef71019f961ab3
tree3ca1dbd90d9e191b38076d4d977c583623f23719
parent0e61e56e5728fc0ed387e9a53f40a6e77e9bc793
Bug 34346: Show error message instead of 500 for duplicate tags

This change shows a user-friendly error message instead of a 500 error
if adding a duplicate MARC tag to a MARC bibliographic framework.

Test plan:
0. Add patch and koha-plack --reload kohadev
1. Go to
http://localhost:8081/cgi-bin/koha/admin/marctagstructure.pl?searchfield=264&frameworkcode=
2. Click "New tag"
3. Enter "264" in "Tag:" field
4. Click "Save changes"
5. See error message on screen (instead of 500 error)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Bug 34346: Tidy

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Slightly adjusted error message and added punctuation.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
admin/marctagstructure.pl
koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc