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>
This commit is contained in:
parent
d65cfd570e
commit
ebe6dddc8c
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ function updateHeadingLinks(links) {
|
|||
|
||||
// Find the $9 field to update
|
||||
var tag_subfield_line = $('.subfield_line[id^=subfield' + heading.tag + '9]').eq(tag_index);
|
||||
if( tag_subfield_line.length < 1 ){ return; }
|
||||
|
||||
var subfield = tag_subfield_line.children('.input_marceditor').eq(0);
|
||||
|
||||
// Delete the old status if one exists
|
||||
|
|
Loading…
Reference in a new issue