From a2d03a5d6323e8a89579d1e0324b0eba81120f70 Mon Sep 17 00:00:00 2001 From: Suzanne Paterno Date: Tue, 6 Aug 2019 11:29:57 -0400 Subject: [PATCH] LP 1774268 On patron edit screen set the email and phone notification to true when patron doesn't have any prefernces. This mimics the behavior in the xul client. Signed-off-by: Michele Morgan Signed-off-by: Jason Boyer --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 6 +++++- 1 file changed, 5 insertions(+), 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 ea29c0de5d..489d6a590e 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 @@ -1870,7 +1870,11 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , function extract_hold_notify() { var notify = $scope.user_settings['opac.hold_notify']; - if (!notify) return; + if (!notify) { + $scope.hold_notify_type.phone = true; + $scope.hold_notify_type.email = true; + return; + } $scope.hold_notify_type.phone = Boolean(notify.match(/phone/)); $scope.hold_notify_type.email = Boolean(notify.match(/email/)); $scope.hold_notify_type.sms = Boolean(notify.match(/sms/)); -- 2.11.0