From 009a5fadab63cffb9915d781b68f4514b2844c69 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Thu, 28 Sep 2017 13:08:48 -0400 Subject: [PATCH] LP#1714060 - fixes thinko when obeying patron.password.use_phone setting in patron regctl There was a bug, an undefined variable was being used to assign the last four digits of the day_phone to usr.passwd when this library setting was being used. Signed-off by: Cesar Velez Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c54935ccb6..71c84e4d78 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 @@ -1702,7 +1702,7 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , if ($scope.patron.day_phone && $scope.patron.isnew && $scope.org_settings['patron.password.use_phone']) { - $scope.patron.passwd = phone.substr(-4); + $scope.patron.passwd = $scope.patron.day_phone.substr(-4); } case 'evening_phone' : case 'other_phone' : -- 2.11.0