From 10a0680e782a6cb7646d4f7d925c8feba44865c4 Mon Sep 17 00:00:00 2001 From: Rogan Hamby Date: Wed, 5 Aug 2020 09:40:46 -0400 Subject: [PATCH] LP#1332651 do not strip internal spaces in barcode for retrieve patron via checkout Signed-off-by Rogan Hamby Signed-off-by: Jason Etheridge --- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index 08f059659b..0b1a1a7d52 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -474,7 +474,8 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc , $u $scope.bcNotFound = null; $scope.optInRestricted = false; if (!args.barcode) return; - args.barcode = args.barcode.replace(/\s/g,''); + args.barcode = args.barcode.replace(/^\s/g,''); + args.barcode = args.barcode.replace(/\s$/g,''); // blur so next time it's set to true it will re-apply select() $scope.selectMe = false; -- 2.11.0