From 025ff251cafaf0ac3071be72c277ae1f937b297d Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 30 Oct 2014 12:27:48 +0100 Subject: [PATCH] Bug 13096: Send account notice when changing password with member-password Content-Type: text/plain; charset=utf-8 Send an alert with account details if AutoEmailOpacUser is enabled and the checkbox was not unchecked. Added license statement and modern perl line to the code. Fixed some other minor issues too: When changing password, the ajax call used userid instead of borrowernumber. Current master does not allow you to change userid only. Test on newpassword in the template was dead. Removed dead destination parameter. Test plan: Disable AutoEmailOpacUser. Goto a patron. Click the Change Password button. No checkbox, no mail. Enable AutoEmailOpacUser. Click Change Password again. Do you receive a mail when saving? Uncheck the checkbox: no mail? Test changing the userid only. Test saving without any changes. --- .../prog/en/modules/members/member-password.tt | 25 ++++--- members/member-password.pl | 74 ++++++++++++-------- 2 files changed, 61 insertions(+), 38 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt index 96544e0..3b5918b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt @@ -1,5 +1,6 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Patrons › [% IF ( newpassword ) %]Password updated [% ELSE %]Update password for [% surname %], [% firstname %][% END %] +Koha › Patrons › Update password for [% surname %], [% firstname %] [% INCLUDE 'doc-head-close.inc' %]