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

(-)a/opac/opac-reportproblem.pl (-4 / +3 lines)
Lines 94-101 if ( $op eq 'addreport' ) { Link Here
94
                    }
94
                    }
95
                );
95
                );
96
96
97
                my $from_address = C4::Context->preference('KohaAdminEmailAddress');
98
                my $transport = 'email';
97
                my $transport = 'email';
98
                my $reply_address = $patron->email || $patron->emailpro || $patron->B_email;
99
99
100
                if ( $recipient eq 'admin' ) {
100
                if ( $recipient eq 'admin' ) {
101
                    C4::Letters::EnqueueLetter({
101
                    C4::Letters::EnqueueLetter({
Lines 103-109 if ( $op eq 'addreport' ) { Link Here
103
                        borrowernumber         => $borrowernumber,
103
                        borrowernumber         => $borrowernumber,
104
                        message_transport_type => $transport,
104
                        message_transport_type => $transport,
105
                        to_address             => C4::Context->preference('KohaAdminEmailAddress'),
105
                        to_address             => C4::Context->preference('KohaAdminEmailAddress'),
106
                        from_address           => $from_address,
106
                        reply_address          => $reply_address,
107
                    });
107
                    });
108
                } else {
108
                } else {
109
                    C4::Letters::EnqueueLetter({
109
                    C4::Letters::EnqueueLetter({
Lines 111-117 if ( $op eq 'addreport' ) { Link Here
111
                        borrowernumber         => $borrowernumber,
111
                        borrowernumber         => $borrowernumber,
112
                        message_transport_type => $transport,
112
                        message_transport_type => $transport,
113
                        to_address             => $library->branchemail,
113
                        to_address             => $library->branchemail,
114
                        from_address           => $from_address,
114
                        reply_address          => $reply_address,
115
                    });
115
                    });
116
                }
116
                }
117
117
118
- 

Return to bug 4461