LP 1774268
authorSuzanne Paterno <paterno@noblenet.org>
Tue, 6 Aug 2019 15:29:57 +0000 (11:29 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Thu, 20 Feb 2020 21:23:26 +0000 (16:23 -0500)
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 <mmorgan@noblenet.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 5949658..1b33d52 100644 (file)
@@ -1871,7 +1871,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/));