From 7800ccdc6d7bc5006044804eab2c0b8f3c798e72 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 30 Dec 2021 12:39:45 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 c7d5ec3908..e4658065e2 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. -- 2.11.0