From 4bb5d07bb131b50cf6a001340d9c092e8e27465e 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 7b0bee9480..9cb8164dad 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 @@ -720,7 +720,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.11.0