From 6a775e8d1a413be7a60df4dfc40918521efd812b Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 30 Jan 2012 16:38:34 -0500 Subject: [PATCH] Fix "Add Volumes" entry in "Actions for this Record" menu A typo in Open-ILS/xul/staff_client/chrome/content/cat/opac.js (cbdObj instead of cbsObj) led to the exception "Reference error: cbdObj is not defined" being thrown any time the "Add Volumes" entry was chosen. Signed-off-by: Jason Stephenson Signed-off-by: Dan Scott --- Open-ILS/xul/staff_client/chrome/content/cat/opac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index 659d652adf..4bd31287c1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -948,7 +948,7 @@ function add_volumes() { [ ses(), bibObj.source() ] ); - if (cbdObj && cbsObj.can_have_copies() != get_db_true()) { + if (cbsObj && cbsObj.can_have_copies() != get_db_true()) { alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbsObj.source()])); return; } -- 2.43.2