Bug 4461: Use get_effective_email from bug 22823
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 2 Mar 2020 15:18:33 +0000 (15:18 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 6 Apr 2020 10:17:58 +0000 (11:17 +0100)
Use the get_effective_email from Koha::Library to get an appropriate
inbound address for the branch as aposed to using branchemail directly.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

opac/opac-reportproblem.pl

index fa6171b..4f5ce5e 100755 (executable)
@@ -110,7 +110,7 @@ if ( $op eq 'addreport' ) {
                         letter                 => $letter,
                         borrowernumber         => $borrowernumber,
                         message_transport_type => $transport,
-                        to_address             => $library->branchemail,
+                        to_address             => $library->get_effective_email,
                         reply_address          => $reply_address,
                     });
                 }