From f349dc6c3bf5f421ae22cb67ec377177bf2c25af Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 13 Sep 2017 03:44:19 +0000 Subject: [PATCH] Bug 18956: Fix empty to in message queue Content-Type: text/plain; charset=utf-8 Follow the test plan in comment #20. Also tweaked string, because it was really 'or' before too. Signed-off-by: Marcel de Rooy Amended text in added comment. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt | 2 +- opac/opac-password-recovery.pl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt index b16a33b..5c13952 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt @@ -86,7 +86,7 @@
-

To reset your password, enter your login and your email address. +

To reset your password, enter your login or your email address. diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index cc2717d..159f7f4 100755 --- a/opac/opac-password-recovery.pl +++ b/opac/opac-password-recovery.pl @@ -107,6 +107,10 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { DeleteExpiredPasswordRecovery( $borrower->borrowernumber ); } } + # Set the $email, if we don't have one. + if ( !$hasError && !$email ) { + $email = $firstNonEmptyEmail; + } } else { # 0 matching borrower $hasError = 1; -- 2.1.4