LP#1452950 username defaults to barcode
authorBill Erickson <berickxx@gmail.com>
Sun, 20 Sep 2015 14:35:51 +0000 (10:35 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 25 Feb 2016 22:31:57 +0000 (17:31 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 9e3cb29..91ea251 100644 (file)
@@ -665,6 +665,8 @@ function PatronRegCtrl($scope, $routeParams,
                 console.log('duplicate barcode detected: ' + bc);
                 // DUPLICATE CARD
             } else {
+                if (!$scope.patron.usrname)
+                    $scope.patron.usrname = bc;
                 // No dupe -- A-OK
             }
         });