From 2de6758c519938ccba06c5b136b9c262b9a34844 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 --- 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 510d13ce50..89e6287657 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -1107,9 +1107,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