From e4a73eba038df6c1fd7df89373d7a98c0d1b5e1f Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Mon, 2 Mar 2020 15:18:33 +0000
Subject: [PATCH] Bug 4461: Use get_effective_email from bug 22823

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>
---
 opac/opac-reportproblem.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opac/opac-reportproblem.pl b/opac/opac-reportproblem.pl
index fa6171bf36..4f5ce5e3c2 100755
--- a/opac/opac-reportproblem.pl
+++ b/opac/opac-reportproblem.pl
@@ -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,
                     });
                 }
-- 
2.20.1