Koha/koha-tmpl/intranet-tmpl/prog
Cori Lynn Arnold bae538dcdd
Bug 24323: Advanced editor - Display an error message if the record did not save
Invalid 008 with helper silently fails to save.

This patch adds a "else if" to fall through if the error message isn't
one of the previously defined ones ("syntax" and "invalid") and presents
the human with a generic message that "Something went wrong, cannot
save."

Prior to testing:
a/Verify that Advanced Editor is enabled
b/Download the errorrecord.mrc from bug

To test:
1/Apply patch
2/Go to Cataloging->Advanced Editor
3/Click "Import Record" button and navigate to the record saved from
step b/
4/Add an 003 field (as required by the default cataloging config)
5/Hit "Save to catalog"
6/Verify that a message is passed to the user that the file was unable
to be saved

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-10 10:48:05 +00:00
..
css Bug 24373: Correct basic cataloging editor CSS 2020-01-10 10:45:25 +00:00
en Bug 24323: Advanced editor - Display an error message if the record did not save 2020-01-10 10:48:05 +00:00
img Bug 7882: Add ability to move and reorder fields in MARC editor 2020-01-03 16:27:59 +00:00
js Bug 10469: Display more when editing subfields in frameworks 2020-01-03 16:32:26 +00:00
pdf
sound