Bug 11299: (follow-up) Skip fields with no 9 subfields
authorNick Clemens <nick@bywatersolutions.com>
Tue, 25 Aug 2020 11:26:31 +0000 (11:26 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 14 Jan 2021 13:03:49 +0000 (14:03 +0100)
commitebe6dddc8c23b736cc4888265fcf7b4ca56eb118
treec2e6d9074eb40bb7fb83c5a831d2af282003170f
parentd65cfd570e585d7a15d7aab6a020286b0413d46d
Bug 11299: (follow-up) Skip fields with no 9 subfields

To test:
1 - Disable the 'thesaurus' for a controlled field like 600a or 650a
2 - Edit a record and put random data in this field
3 - Try to link, get a JS error
4 - Apply patch
5 - Repeat
6 - No more error, field is not linked (as it has no $9 subfield)

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt