From: Thomas Berezansky Date: Thu, 22 Sep 2011 13:16:31 +0000 (-0400) Subject: Don't check barcode without strict enabled X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a8fc7e7a84bd94d2cd5f89ff38901cc716192f08;p=working%2FEvergreen.git 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 --- 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 {