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=8c7bdaa944117eb29cce47d5d23a842db1586596;p=working%2FEvergreen.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 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;