From 8c7bdaa944117eb29cce47d5d23a842db1586596 Mon Sep 17 00:00:00 2001 From: Skye Howard Date: Thu, 17 Aug 2017 21:52:08 +0000 Subject: [PATCH] LP#1629298: Web Client Checkout Fails For Barcodes With Spaces Web Client checkout trims spaces from patron barcodes differently than xul client checkout The web client was not removing the whitespaces before checking barcode searches this commit includes a step where the whitespaces are removed. Signed off by Skye Howard Signed off by Cesar Velez Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 2 +- 1 file changed, 1 insertion(+), 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 a72a09801b..e942a0c97b 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 @@ -447,7 +447,7 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc) { $scope.bcNotFound = null; $scope.optInRestricted = false; if (!args.barcode) return; - + 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.43.2