From 5e8366d77a0c016c5b5a3e045e3e74c5a67da349 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 23 Mar 2017 10:01:53 +0100 Subject: [PATCH] Bug 17866: [QA Follow-up] Reword message for missing email address See BZ, comment 14 from Jonathan. In the exceptional case that branch email address and fallback, i.e. preference KohaAdminEmailAddress, are both empty or not valid, the error message should reflect that (of course :) Signed-off-by: Marcel de Rooy Removed branch email and KohaAdminEmailAddress. Followed the test plan of the first patch and saw the alert. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt | 4 ++-- serials/claims.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt index 59beed11f2..a140ebbc55 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -142,8 +142,8 @@ [% IF error_claim %] [% IF error_claim == 'no_vendor_email' %]
This vendor has no email defined for late issues.
- [% ELSIF error_claim == 'no_loggedin_user_email' %] -
No email is configured for your user.
+ [% ELSIF error_claim == 'bad_or_missing_sender' %] +
Bad or missing sender address; check your branch email address or preference KohaAdminEmailAddress.
[% ELSE %]
[% error_claim %]
[% END %] diff --git a/serials/claims.pl b/serials/claims.pl index b4bc94fbd1..38dd601ff4 100755 --- a/serials/claims.pl +++ b/serials/claims.pl @@ -80,7 +80,7 @@ if (@serialnums) { # i.e. they have been flagged to generate claims if ( $err->{error} eq "no_email" ) { $template->param( error_claim => 'no_vendor_email' ); } elsif ( $err->{error} =~ m|Bad or missing From address| ) { - $template->param( error_claim => 'no_loggedin_user_email' ); + $template->param( error_claim => 'bad_or_missing_sender' ); } } else { $template->param( info_claim => 1 ); -- 2.11.4.GIT