From 1b4eab0f9c9266481f2269f1f813318f024eb9a7 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 1 Sep 2011 23:18:03 -0400 Subject: [PATCH] fix Acq -> Update Barcodes post-parts Items from acquisitions were having null instead of [] for .parts() Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index 127d5c4814..aecfe20df7 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -735,7 +735,7 @@ g.render_barcode_entry = function(node,callnumber_composite_key,count,ou_id) { tb.setAttribute('acp_id', g.org_label_existing_copy_map[ ou_id ][ callnumber_composite_key ][i].id()); var temp_parts = g.org_label_existing_copy_map[ ou_id ][ callnumber_composite_key ][i].parts(); temp_parts = util.functional.filter_list( - temp_parts, + temp_parts || [], function(p) { return p.record() == g.doc_id; // filter out foreign parts } -- 2.43.2