Bugzilla – Attachment 30724 Details for
Bug 9530
Allow separate 'Reply To' and 'From' email address for notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9530 making changes to opac/opac-sendshelf.pl
Bug-9530-making-changes-to-opacopac-sendshelfpl.patch (text/plain), 1.84 KB, created by
Chris Cormack
on 2014-08-11 22:59:54 UTC
(
hide
)
Description:
Bug 9530 making changes to opac/opac-sendshelf.pl
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2014-08-11 22:59:54 UTC
Size:
1.84 KB
patch
obsolete
>From f3095acb3965ff97761dc6e500244771d5a243a9 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Tue, 12 Aug 2014 10:19:39 +1200 >Subject: [PATCH] Bug 9530 making changes to opac/opac-sendshelf.pl > >To Test > >1/ Edit the new systempreferences (ReplytoDefault and ReturnpathDefault) >2/ Optionally edit the branch the mail will be sent from, adding email addresses >3/ Send a list from the public (OPAC) interface >4/ Check that the mails have the correct From, Replyto and ReturnPath set > The rules are > If the values are set in the branch use that, else use the syspref >--- > opac/opac-sendshelf.pl | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/opac/opac-sendshelf.pl b/opac/opac-sendshelf.pl >index 38fb544..e3bcfe3 100755 >--- a/opac/opac-sendshelf.pl >+++ b/opac/opac-sendshelf.pl >@@ -33,6 +33,7 @@ use C4::Items; > use C4::Output; > use C4::VirtualShelves; > use C4::Members; >+use Koha::Email; > > my $query = new CGI; > >@@ -54,12 +55,13 @@ my $dbh = C4::Context->dbh; > if ( ShelfPossibleAction( (defined($borrowernumber) ? $borrowernumber : -1), $shelfid, 'view' ) ) { > > if ( $email ) { >- my $email_from = C4::Context->preference('KohaAdminEmailAddress'); >+ my $message = Koha::Email->new(); > my $comment = $query->param('comment'); > >- my %mail = ( >- To => $email, >- From => $email_from >+ my %mail = $message->create_message_headers( >+ { >+ to => $email, >+ } > ); > > my ( $template2, $borrowernumber, $cookie ) = get_template_and_user( >@@ -113,7 +115,7 @@ if ( $email ) { > > $template2->param( > BIBLIO_RESULTS => \@results, >- email_sender => $email_from, >+ email_sender => $mail{'from'}, > comment => $comment, > shelfname => $shelf[1], > firstname => $user->{firstname}, >-- >2.0.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 9530
:
30717
|
30718
|
30719
|
30720
|
30721
|
30722
|
30723
|
30724
|
30725
|
30740
|
30741
|
30742
|
30743
|
30760
|
30761
|
30762
|
30763
|
31169
|
31196
|
31926
|
31927
|
31928
|
31929
|
31930
|
31931
|
31932
|
31933
|
31934
|
31935
|
32799