From a8fc7e7a84bd94d2cd5f89ff38901cc716192f08 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Thu, 22 Sep 2011 09:16:31 -0400 Subject: [PATCH] Don't check barcode without strict enabled Item status was, unlike other interfaces, doing the strict check, THEN looking at the checkbox and if it was checked return. This caused issues when the barcode crashes out the strict checking. Signed-off-by: Thomas Berezansky Signed-off-by: Dan Scott --- Open-ILS/xul/staff_client/server/circ/copy_status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index 6026a85ce8..2c78b61184 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -1020,9 +1020,9 @@ circ.copy_status.prototype = { 'test_barcode' : function(bc) { var obj = this; - var good = util.barcode.check(bc); var x = document.getElementById('strict_barcode'); if (x && x.checked != true) { return true; } + var good = util.barcode.check(bc); if (good) { return true; } else { -- 2.11.0