From 446759787e8230baf48092930e202b4a6beef8e8 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Wed, 28 Nov 2018 22:10:24 +0000 Subject: [PATCH] lp1777677 Show test notification buttons by retrieved data - Prevents test notification buttons from displaying when email or sms data is input but no data exists on server. Signed-off-by: Kyle Huckins Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index d147b45367..966f9bbf20 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -461,7 +461,7 @@ within the "form" by name for validation.
[% draw_field_label('au', 'email') %] [% draw_form_input('au', 'email', '', 'email') %] -
+
@@ -786,7 +786,7 @@ within the "form" by name for validation. ng-blur="handle_field_changed(user_settings, 'opac.default_sms_notify')" type='text'/>
-
+
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 0d7269bac1..e78cda9d8a 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 @@ -1370,6 +1370,8 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , // in standalone mode, we have no patronSvc var prs = patronRegSvc; $scope.patron = patron; + $scope.base_email = patron.email; + $scope.base_default_sms = prs.user_settings['opac.default_sms_notify'] $scope.field_doc = prs.field_doc; $scope.edit_profiles = prs.edit_profiles; $scope.edit_profile_entries = prs.edit_profile_entries; -- 2.11.0