[open-ils-commits] r7736 -
trunk/Open-ILS/xul/staff_client/server/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 29 12:08:20 EDT 2007
Author: phasefx
Date: 2007-08-29 12:02:27 -0400 (Wed, 29 Aug 2007)
New Revision: 7736
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/checkout.js
Log:
tentative 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
Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkout.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkout.js 2007-08-29 15:02:06 UTC (rev 7735)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkout.js 2007-08-29 16:02:27 UTC (rev 7736)
@@ -352,9 +352,7 @@
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 @@
/* 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 @@
}
} 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 {
More information about the open-ils-commits
mailing list