From: dbs Date: Wed, 30 Jan 2008 03:23:21 +0000 (+0000) Subject: We actually need to test for equality with '0' X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=828a0ecaee76099dd810524b1369568d589485e4;p=Evergreen.git We actually need to test for equality with '0' git-svn-id: svn://svn.open-ils.org/ILS/trunk@8533 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index d67c1146cf..3ff392f1f1 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -364,7 +364,7 @@ circ.checkout.prototype = { var checkout = req.getResultObject(); - if (checkout.ilsevent === 0) { + if (checkout.ilsevent === '0') { if (!checkout.payload) { checkout.payload = {}; } @@ -597,7 +597,7 @@ circ.checkout.prototype = { /**********************************************************************************************************************/ /* Normal case, proceed with checkout */ - if (permit.ilsevent === 0) { + if (permit.ilsevent === '0') { JSAN.use('util.sound'); var sound = new util.sound(); sound.circ_good(); params.permit_key = permit.payload;