[Koha-bugs] [Bug 17866] Change sender for serial claim notifications
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 22 16:40:41 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17866
--- Comment #11 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
serials/claims.pl
if ( $@ ) {
$template->param(error_claim => $@);
} elsif ( ref $err and exists $err->{error} ) {
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' );
}
} else {
$template->param( info_claim => 1 );
claims.tt
[% IF error_claim %]
[% IF error_claim == 'no_vendor_email' %]
<div class="dialog alert">This vendor has no email defined for late
issues.</div>
[% ELSIF error_claim == 'no_loggedin_user_email' %]
<div class="dialog alert">No email is configured for your
user.</div>
[% ELSE %]
<div class="dialog alert">[% error_claim %]</div>
[% END %]
[% END %]
[% IF info_claim %]
<div class="dialog message">Email has been sent.</div>
[% END %]
It is a little bit confusing that claims.pl changes the error codes, but it
looks like it should be working too.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list