Fix "Add Volumes" entry in "Actions for this Record" menu
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 30 Jan 2012 21:38:34 +0000 (16:38 -0500)
committerDan Scott <dscott@laurentian.ca>
Mon, 30 Jan 2012 22:43:15 +0000 (17:43 -0500)
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 <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/xul/staff_client/chrome/content/cat/opac.js

index 659d652..4bd3128 100644 (file)
@@ -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;
             }