https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42424 --- Comment #3 from Phil Ringnalda <phil@chetcolibrary.org> --- Created attachment 198163 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198163&action=edit Bug 42424: Javascript error prevents saving when an instance of an 'important' or 'required' subfield is deleted In the loop to check fields, we enter a conditional when the element is null - but then we try to adjust the element. This patch removes the condition and prevents accessing NULL fields To test: 1 - Go to Administration->MARC Bibliographic framework 2 - Under Default click Action->MARC Structure 3 - Search for 020 4 - Click Actions->Edit subfields 5 - Click on tab 'a' 6 - Check important, save 7 - Cataloging->New from Z39 8 - Search for ISBN: 9798225048921 (or any record you want) 9 - Ensure the result has more than one ISBN and click Actions->Import 10 - Delete one of the ISBN fields 11 - Click 'Save' 12 - Check the console (F12) Uncaught TypeError: Cannot read properties of null (reading 'nodeName') 13 - Apply patch 14 - Repeat 8-10 15 - Click save (and clear any other fields that need edited) 16 - Confirm record can be saved Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> -- You are receiving this mail because: You are watching all bug changes.