I get a JS error on saving a record (not modified, just edited an existing one): TypeError: nonRepeatableSubfields[field.tagnumber(...)] is undefined ...d[0] ] != null && nonRepeatableSubfields[ field.tagnumber() ][ subfield[0] ] ) koha-backend.js (line 229, col 89) In koha-backend.js 227 if ( seenSubfields[ subfield[0] ] != null && nonRepeatableSubfields[ field.tagnumber() ][ subfield[0] ] ) { field.tagnumber() returns 210 The field 210 is not marked as repeatable in my default framework
Could I ask you to attach the record in question? I remember this error popping up during QA on bug 11559, and I'd like to stamp it out for good.
Created attachment 47085 [details] bib-112.utf8
Created attachment 47368 [details] [review] Bug 15514: Fix error with certain repeatable fields in Rancor Apologies for the lack of test plan. Joubu, could you verify that this fixes your error?
Created attachment 47377 [details] [review] Bug 15514: Fix error with certain repeatable fields in Rancor Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Much better. I now get the "Missing mandatory subfield|tag" error, which is expected.
Created attachment 47986 [details] [review] Bug 15514: Fix error with certain repeatable fields in Rancor Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to Master - Should be in the May 2016 Release. Thanks
Patch pushed to 3.22.x, will be in 3.22.4