From f2ac6cbbb62fac48676e3c56c51f793adbc135be Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 29 Aug 2007 16:09:09 +0000 Subject: [PATCH] fix for the bug in the prevent-redundant-barcode-scan feature during checkout, where a failed attempt at a checkout will not allow a re-attempt git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7738 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/checkout.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index b6004561ba..d657ffba1e 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -352,9 +352,7 @@ circ.checkout.prototype = { function _checkout_callback(req,x) { try { - if (params.barcode) { - delete obj._checkout_pending_hash[ params.barcode ]; - } + if (params.barcode) { delete obj._checkout_pending_hash[ params.barcode ]; } var checkout = req.getResultObject(); @@ -592,6 +590,8 @@ circ.checkout.prototype = { /* Item not cataloged or barcode mis-scan. Prompt for pre-cat option */ } else { + if (params.barcode) { delete obj._checkout_pending_hash[ params.barcode ]; } + var found_handled = false; var found_not_handled = false; var msg = ''; if (test_event(permit,1202 /* ITEM_NOT_CATALOGED */)) { @@ -776,6 +776,7 @@ circ.checkout.prototype = { } } catch(E) { + if (params.barcode) { delete obj._checkout_pending_hash[ params.barcode ]; } if (typeof E.ilsevent != 'undefined' && E.ilsevent == -1) { obj.error.standard_network_error_alert('Check Out Failed. If you wish to use the offline interface, in the top menubar select Circulation -> Offline Interface'); } else { -- 2.11.0