From: Terran McCanna Date: Thu, 30 Dec 2021 17:39:45 +0000 (-0500) Subject: PINES fix for self-check missing code X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d96ffa9bcec2f441ed6803912fbc05fca23c0920;p=evergreen%2Fpines.git PINES fix for self-check missing code This adds back code that is in master and was in rel_3_6_1, but was missing in rel_3_8_0. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js index a5aeb51525..1e4ed08dc0 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -331,8 +331,12 @@ SelfCheckManager.prototype.loadOrgSettings = function() { this.orgSettings[k] = settings[k].value; } - if(settings[SET_BARCODE_REGEX]) + if(settings[SET_BARCODE_REGEX]) { this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value); + } else { + this.patronBarcodeRegex = new RegExp(/^\d/); + // this assumes barcodes start with digits + } // Subtract the timeout warning interval from the configured timeout // so that when taken together they add up to the configured amount.