LP#1452950 username defaults to barcode
[Evergreen.git] / 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
             }
         });