From: Skye Howard Date: Thu, 17 Aug 2017 21:52:08 +0000 (+0000) Subject: LP#1629298: Web Client Checkout Fails For Barcodes With Spaces X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=60babbe6d9bea564d5653f7136e658d8717695ba;p=Evergreen.git 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 --- 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 fe7901d5ca..9967ce3fa2 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 @@ -808,7 +808,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;