From 795df5c89a4d1fddb7f7c268789a14b5e15712da 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 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. Signed-off-by: Mason James --- .../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 b16a33bc0a..5c13952abd 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 cbaeccb97e..6cf322f562 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.39.5