From: Bill Erickson Date: Sat, 16 Jan 2016 16:39:08 +0000 (-0500) Subject: LP#1452950 Patron reg pass=phone on new patrons only X-Git-Tag: sprint4-merge-nov22~562 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=58d0590e07d3f4db68c9a6ae8b90a6f4f48aa4c4;p=working%2FEvergreen.git LP#1452950 Patron reg pass=phone on new patrons only When changing a patron's phone number, only modify the password for new patrons when the org setting patron.password.use_phone is enabled. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- 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 6670b760e2..f03a4eb662 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 @@ -939,8 +939,9 @@ function PatronRegCtrl($scope, $routeParams, } $scope.day_phone_changed = function(phone) { - if (phone && $scope.org_settings['patron.password.use_phone']) { - $scope.patron.passwd = phone.substr(-4); + if (phone && $scope.patron.isnew && + $scope.org_settings['patron.password.use_phone']) { + $scope.patron.passwd = phone.substr(-4); } }