From 896d2f5aa4dc21acf70257f277273adb7ebb8d7a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 31 Aug 2015 22:06:23 +0000 Subject: [PATCH] webstaff: fix bug in MARC21.Field.deleteSubfield() Bug had the effect of ensuring that... subfields would not be deleted. Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/marcrecord.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/marcrecord.js b/Open-ILS/web/js/ui/default/staff/marcrecord.js index 7c3f5258cf..2f03706731 100644 --- a/Open-ILS/web/js/ui/default/staff/marcrecord.js +++ b/Open-ILS/web/js/ui/default/staff/marcrecord.js @@ -613,7 +613,7 @@ var MARC21 = { for (var i = 0; i < args.code.length; i++) { var sub_pos = {}; - for (var j = 0; j < me.subfields; j++) { + for (var j = 0; j < me.subfields.length; j++) { if (me.subfields[j][0] == args.code[i]) { if (!sub_pos[args.code[i]]) sub_pos[args.code[j]] = 0; -- 2.11.0