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:
parent
c98d6f14ee
commit
a5301a99ab
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue