Bugzilla – Attachment 100949 Details for
Bug 24726
overdue_notices.pl should use Koha::Library->inbound_email_address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24726: Update overdue_notices to use inbound_email_address
Bug-24726-Update-overduenotices-to-use-inboundemai.patch (text/plain), 1.57 KB, created by
Jonathan Druart
on 2020-03-18 10:23:31 UTC
(
hide
)
Description:
Bug 24726: Update overdue_notices to use inbound_email_address
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-18 10:23:31 UTC
Size:
1.57 KB
patch
obsolete
>From 374343b1f89de5a5471e86be796b675305eeada2 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 25 Feb 2020 13:20:18 +0000 >Subject: [PATCH] Bug 24726: Update overdue_notices to use > inbound_email_address > >This patch updates the overdue_notices functionality to use the >inbound_email_address method to obtain the correct email address >for a branch. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/cronjobs/overdue_notices.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 75fd593c77..8b4fd7eb00 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -455,6 +455,7 @@ foreach my $branchcode (@branches) { > my $library = Koha::Libraries->find($branchcode); > my $admin_email_address = $library->branchemail > || C4::Context->preference('KohaAdminEmailAddress'); >+ my $branch_email_address = $library->inbound_email_address; > my @output_chunks; # may be sent to mail or stdout or csv file. > > $verbose and warn sprintf "branchcode : '%s' using %s\n", $branchcode, $admin_email_address; >@@ -821,7 +822,7 @@ END_SQL > borrowernumber => undef, > message_transport_type => 'email', > attachments => [$attachment], >- to_address => $admin_email_address, >+ to_address => $branch_email_address, > } > ) unless $test_mode; > } >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24726
:
99580
|
100943
| 100949 |
100950