From: Jason Etheridge Date: Fri, 2 Sep 2011 03:18:03 +0000 (-0400) Subject: fix Acq -> Update Barcodes post-parts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4bb5d07bb131b50cf6a001340d9c092e8e27465e;p=evergreen%2Ftadl.git fix Acq -> Update Barcodes post-parts Items from acquisitions were having null instead of [] for .parts() Signed-off-by: Jason Etheridge --- 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 }