Bugzilla – Attachment 99571 Details for
Bug 24721
emailLibrarianWhenHoldIsPlaced should use Koha::Library->inbound_email_address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24721: Update emailLibrarianWhenHoldIsPlaced to use effective_email
Bug-24721-Update-emailLibrarianWhenHoldIsPlaced-to.patch (text/plain), 1.40 KB, created by
Martin Renvoize (ashimema)
on 2020-02-25 11:05:39 UTC
(
hide
)
Description:
Bug 24721: Update emailLibrarianWhenHoldIsPlaced to use effective_email
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-02-25 11:05:39 UTC
Size:
1.40 KB
patch
obsolete
>From e2bc745270089d3aed695805c543bce8b06163bb Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 25 Feb 2020 11:03:58 +0000 >Subject: [PATCH] Bug 24721: Update emailLibrarianWhenHoldIsPlaced to use > effective_email > >This patch updates the emailLibrarianWhenHoldIsPlaced functionality to >use the get_effective_email method to obtain the correct email address >for a branch. >--- > C4/Reserves.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 00d921d77e..879ecca6cf 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -282,14 +282,14 @@ sub AddReserve { > }, > ) ) { > >- my $admin_email_address = $library->branchemail || C4::Context->preference('KohaAdminEmailAddress'); >+ my $branch_email_address = $library->get_effective_email; > > C4::Letters::EnqueueLetter( >- { letter => $letter, >+ { >+ letter => $letter, > borrowernumber => $borrowernumber, > message_transport_type => 'email', >- from_address => $admin_email_address, >- to_address => $admin_email_address, >+ to_address => $branch_email_address, > } > ); > } >-- >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 24721
:
99571
|
100941
|
100947