From: Cesar Velez Date: Thu, 28 Sep 2017 17:08:48 +0000 (-0400) Subject: LP#1714060 - fixes thinko when obeying patron.password.use_phone setting in patron... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcesardv%2Flp1714060-bug_in_patron_reg_patron.password.use_phone;p=working%2FEvergreen.git 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 --- 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 728f1764a8..3a8e46063b 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 @@ -1719,7 +1719,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' :