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 <m.de.rooy@rijksmuseum.nl> Amended text in added comment. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
6336e53aed
commit
c4113dce70
|
|
@ -89,7 +89,7 @@
|
|||
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off">
|
||||
<input type="hidden" name="koha_login_context" value="opac" />
|
||||
<fieldset>
|
||||
<p>To reset your password, enter your login and your email address.
|
||||
<p>To reset your password, enter your login or your email address.
|
||||
<label for="username">Login:</label>
|
||||
<input type="text" id="username" size="40" name="username" value="[% username %]" />
|
||||
<label for="email">Email:</label>
|
||||
|
|
|
|||
|
|
@ -104,6 +104,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue