From 382901bb17571bcb3d85c69a7b5ef0dbf4ec7123 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 24 Sep 2007 20:12:38 +0000 Subject: [PATCH] copy/paste-o. This lets shelving location be settable for pre-cats git-svn-id: svn://svn.open-ils.org/ILS/trunk@7824 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index 17906d9255..77e41bf81b 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -630,7 +630,7 @@ g.get_acpl_list = function() { if (ancestor) { var acpl_list = get(ancestor, ancestors); - for (var i = 0; i < acpl_list.length; i++) { + if (acpl_list) for (var i = 0; i < acpl_list.length; i++) { if (acpl_list[i] != null) { temp_acpl_list.push(acpl_list[i]); } @@ -661,7 +661,7 @@ g.get_acpl_list = function() { if ( flat_acpl_list.indexOf( String( consider_acpl ) ) > -1 ) { /* already in list */ } else { - if (acpl_list[i] != null) temp_acpl_list.push( circ_acpl_list[i] ); + if (circ_acpl_list[i] != null) temp_acpl_list.push( circ_acpl_list[i] ); } } } -- 2.11.0