From 6319263f8356e5095c6ace3e36d9f33f2f79b1da Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Sun, 20 Sep 2015 10:35:51 -0400 Subject: [PATCH] LP#1452950 username defaults to barcode Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index 9e3cb294ae..91ea251b5b 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -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 } }); -- 2.11.0