Bug 4461: Use inbound_email_address to know if we display the dropdown list

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-04-03 15:06:53 +02:00 committed by Martin Renvoize
parent c98d6f14ee
commit a5301a99ab
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 3 additions and 4 deletions

View File

@ -51,7 +51,7 @@
<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>

View File

@ -52,9 +52,8 @@ my $referer = Koha::Util::Navigation::local_referer($input );
$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(
@ -81,7 +80,7 @@ if ( $op eq 'addreport' ) {
title => $subject,
content => $message,
borrowernumber => $borrowernumber,
branchcode => $branchcode,
branchcode => $patron->branchcode,
username => $username,
problempage => $problempage,
recipient => $recipient,