From e3dc1349e0fdc136d751bb8dba8ad8604a59393c Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Wed, 5 Oct 2011 21:03:41 -0400 Subject: [PATCH] Minor adjustment in source_init method of copy_browser.js. Signed-off-by: Jason Stephenson --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index 00ed07ffc1..90cad418f9 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -1854,15 +1854,14 @@ cat.copy_browser.prototype = { // Sets can_have_copies and source member variables. 'source_init' : function() { var obj = this; - var cbsObj; - try { + try { var bibObj = obj.network.request( api.FM_BRE_RETRIEVE_VIA_ID.app, api.FM_BRE_RETRIEVE_VIA_ID.method, [ ses(), [obj.docid] ] ); bibObj = bibObj[0]; - cbsObj = obj.network.request( + var cbsObj = obj.network.request( api.FM_CBS_RETRIEVE_VIA_PCRUD.app, api.FM_CBS_RETRIEVE_VIA_PCRUD.method, [ ses(), bibObj.source() ] -- 2.11.0