From 9b559e83b4cc74d0140587784678a3481bdcec08 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 4 Oct 2011 09:29:52 -0400 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/cat/opac.js | 3 +-- Open-ILS/xul/staff_client/server/cat/bib_brief.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.11.0