[open-ils-commits] r18441 - branches/rel_2_0/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 21 12:12:35 EDT 2010
Author: phasefx
Date: 2010-10-21 12:12:31 -0400 (Thu, 21 Oct 2010)
New Revision: 18441
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/checkout.js
Log:
ilsevent is no longer a number, but a string. I knew that, but missed this test
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/checkout.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/checkout.js 2010-10-21 16:08:50 UTC (rev 18440)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/checkout.js 2010-10-21 16:12:31 UTC (rev 18441)
@@ -952,7 +952,7 @@
if (typeof robj.ilsevent == 'undefined') {
obj.checkout(params);
} else {
- switch(robj.ilsevent) {
+ switch(Number(robj.ilsevent)) {
case 1225 /* TRANSIT_ABORT_NOT_ALLOWED */ :
alert(robj.desc);
break;
More information about the open-ils-commits
mailing list