From: Jason Stephenson Date: Tue, 4 Oct 2011 13:29:52 +0000 (-0400) Subject: Fix thinko in opac.js and bib_brief.js. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9b559e83b4cc74d0140587784678a3481bdcec08;p=working%2FEvergreen.git Fix thinko in opac.js and bib_brief.js. Forgot to change the variable name from cbs to cbsObj when reporting that the source cannot have copies. Signed-off-by: Jason Stephenson --- 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 7a27291a6b..2bf5ab5224 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -926,9 +926,8 @@ function add_volumes() { return; } - if (!can_have_copies) { - alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source()])); + alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbsObj.source()])); return false; } diff --git a/Open-ILS/xul/staff_client/server/cat/bib_brief.js b/Open-ILS/xul/staff_client/server/cat/bib_brief.js index 41ee31a5f0..4be0fb2a78 100644 --- a/Open-ILS/xul/staff_client/server/cat/bib_brief.js +++ b/Open-ILS/xul/staff_client/server/cat/bib_brief.js @@ -191,7 +191,7 @@ function add_volumes() { } if (!can_have_copies) { - alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source()])); + alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbsObj.source()])); return false; }