View | Details | Raw Unified | Return to bug 4461
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt (-1 / +1 lines)
Lines 51-57 Link Here
51
                                <ol>
51
                                <ol>
52
                                    <li>
52
                                    <li>
53
                                        <label for="recipient">Send problem report to: </label>
53
                                        <label for="recipient">Send problem report to: </label>
54
                                        [% IF library.branchemail %]
54
                                        [% IF library.inbound_email_address && library.inbound_email_address != Koha.Preference('KohaAdminEmailAddress') %]
55
                                            <select name="recipient" id="recipient">
55
                                            <select name="recipient" id="recipient">
56
                                                <option value="library">A librarian</option>
56
                                                <option value="library">A librarian</option>
57
                                                <option value="admin">Koha administrator</option>
57
                                                <option value="admin">Koha administrator</option>
(-)a/opac/opac-reportproblem.pl (-4 / +2 lines)
Lines 52-60 my $referer = Koha::Util::Navigation::local_referer($input ); Link Here
52
$referer = Encode::decode_utf8 uri_unescape $referer,
52
$referer = Encode::decode_utf8 uri_unescape $referer,
53
53
54
my $patron = Koha::Patrons->find($borrowernumber);
54
my $patron = Koha::Patrons->find($borrowernumber);
55
my $library = $patron->library;
55
my $username = $patron->userid;
56
my $username = $patron->userid;
56
my $branchcode = $patron->branchcode;
57
my $library = Koha::Libraries->find($branchcode);
58
my @messages;
57
my @messages;
59
58
60
$template->param(
59
$template->param(
Lines 81-87 if ( $op eq 'addreport' ) { Link Here
81
                        title          => $subject,
80
                        title          => $subject,
82
                        content        => $message,
81
                        content        => $message,
83
                        borrowernumber => $borrowernumber,
82
                        borrowernumber => $borrowernumber,
84
                        branchcode     => $branchcode,
83
                        branchcode     => $patron->branchcode,
85
                        username       => $username,
84
                        username       => $username,
86
                        problempage    => $problempage,
85
                        problempage    => $problempage,
87
                        recipient      => $recipient,
86
                        recipient      => $recipient,
88
- 

Return to bug 4461