From 58d0590e07d3f4db68c9a6ae8b90a6f4f48aa4c4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Sat, 16 Jan 2016 11:39:08 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.11.0