From 1255b76bae52960de1d60561e296fbcae8c277ab Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 21 Oct 2010 16:08:50 +0000 Subject: [PATCH] ilsevent is no longer a number, but a string. I knew that, but missed these tests git-svn-id: svn://svn.open-ils.org/ILS/trunk@18440 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/bibs_abreast.js | 2 +- Open-ILS/xul/staff_client/server/circ/checkout.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js b/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js index d4b8648331..bb477eebc1 100644 --- a/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js +++ b/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js @@ -182,7 +182,7 @@ function merge_records() { ] ); if (typeof robj.ilsevent != 'undefined') { - switch(robj.ilsevent) { + switch(Number(robj.ilsevent)) { case 5000 /* PERM_FAILURE */: break; default: throw(robj); } 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