From: Jason Stephenson Date: Mon, 30 Jan 2012 21:38:34 +0000 (-0500) Subject: Fix "Add Volumes" entry in "Actions for this Record" menu X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a775e8d1a413be7a60df4dfc40918521efd812b;p=contrib%2FConifer.git 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 --- 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; }