<ol>
<li>
<label for="recipient">Send problem report to: </label>
- [% IF library.branchemail %]
+ [% IF library.inbound_email_address && library.inbound_email_address != Koha.Preference('KohaAdminEmailAddress') %]
<select name="recipient" id="recipient">
<option value="library">A librarian</option>
<option value="admin">Koha administrator</option>
$referer = Encode::decode_utf8 uri_unescape $referer,
my $patron = Koha::Patrons->find($borrowernumber);
+my $library = $patron->library;
my $username = $patron->userid;
-my $branchcode = $patron->branchcode;
-my $library = Koha::Libraries->find($branchcode);
my @messages;
$template->param(
title => $subject,
content => $message,
borrowernumber => $borrowernumber,
- branchcode => $branchcode,
+ branchcode => $patron->branchcode,
username => $username,
problempage => $problempage,
recipient => $recipient,