From e25a563cd83b7c30776ae9f93928f785acbf5b8a Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 21 Oct 2010 16:12:31 +0000 Subject: [PATCH] ilsevent is no longer a number, but a string. I knew that, but missed this test git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18441 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/checkout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 88412fd969..5b8f7b20a5 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -952,7 +952,7 @@ circ.checkout.prototype = { 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; -- 2.11.0