https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17866

--- Comment #11 from Marcel de Rooy <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to