Don't check barcode without strict enabled
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 22 Sep 2011 13:16:31 +0000 (09:16 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 9 May 2012 18:25:30 +0000 (14:25 -0400)
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 <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/xul/staff_client/server/circ/copy_status.js

index 6026a85..2c78b61 100644 (file)
@@ -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 {