Bugzilla – Attachment 148178 Details for
Bug 3150
Move emails for sending cart and list contents into notices tool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 3150: (follow-up) Send list and cart emails immediately again
Bug-3150-follow-up-Send-list-and-cart-emails-immed.patch (text/plain), 3.70 KB, created by
Kyle M Hall (khall)
on 2023-03-14 17:09:11 UTC
(
hide
)
Description:
Bug 3150: (follow-up) Send list and cart emails immediately again
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-03-14 17:09:11 UTC
Size:
3.70 KB
patch
obsolete
>From af92a8f990d6889403a1d72223dce32abea17ce4 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Fri, 17 Feb 2023 15:52:58 +0000 >Subject: [PATCH] Bug 3150: (follow-up) Send list and cart emails immediately > again > >With this patch set the cart and list emails are sent via >the message_queue instead of bypassing it and being sent >immediately. This patch keeps them in message_queue, but >also sends them immediately, restoring the previous behavior. > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > basket/sendbasket.pl | 4 +++- > opac/opac-sendbasket.pl | 4 +++- > opac/opac-sendshelf.pl | 4 +++- > virtualshelves/sendshelf.pl | 4 +++- > 4 files changed, 12 insertions(+), 4 deletions(-) > >diff --git a/basket/sendbasket.pl b/basket/sendbasket.pl >index 24c5d99db2..0250e07a5d 100755 >--- a/basket/sendbasket.pl >+++ b/basket/sendbasket.pl >@@ -101,7 +101,7 @@ if ( $email_add ) { > content => Encode::encode("UTF-8", $iso2709), > }; > >- C4::Letters::EnqueueLetter({ >+ my $message_id = C4::Letters::EnqueueLetter({ > letter => $letter, > message_transport_type => 'email', > to_address => $email_add, >@@ -109,6 +109,8 @@ if ( $email_add ) { > attachments => [$attachment], > }); > >+ C4::Letters::SendQueuedMessages({ message_id => $message_id }); >+ > $template->param( SENT => 1 ); > } > $template->param( email_add => $email_add ); >diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl >index 3a28d55c5c..b7ac930d66 100755 >--- a/opac/opac-sendbasket.pl >+++ b/opac/opac-sendbasket.pl >@@ -99,7 +99,7 @@ if ( $email_add ) { > content => Encode::encode("UTF-8", $iso2709), > }; > >- C4::Letters::EnqueueLetter({ >+ my $message_id = C4::Letters::EnqueueLetter({ > letter => $letter, > message_transport_type => 'email', > to_address => $email_add, >@@ -107,6 +107,8 @@ if ( $email_add ) { > attachments => [$attachment], > }); > >+ C4::Letters::SendQueuedMessages({ message_id => $message_id }); >+ > $template->param( SENT => 1 ); > } > >diff --git a/opac/opac-sendshelf.pl b/opac/opac-sendshelf.pl >index ddfc164910..758a32c8db 100755 >--- a/opac/opac-sendshelf.pl >+++ b/opac/opac-sendshelf.pl >@@ -116,7 +116,7 @@ if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { > content => Encode::encode("UTF-8", $iso2709), > }; > >- C4::Letters::EnqueueLetter({ >+ my $message_id = C4::Letters::EnqueueLetter({ > letter => $letter, > message_transport_type => 'email', > borrowernumber => $patron->borrowernumber, >@@ -125,6 +125,8 @@ if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { > attachments => [$attachment], > }); > >+ C4::Letters::SendQueuedMessages({ message_id => $message_id }); >+ > $template->param( SENT => 1 ); > } > >diff --git a/virtualshelves/sendshelf.pl b/virtualshelves/sendshelf.pl >index 5079568e39..032c9fd8a5 100755 >--- a/virtualshelves/sendshelf.pl >+++ b/virtualshelves/sendshelf.pl >@@ -115,7 +115,7 @@ if ($to_address) { > content => Encode::encode("UTF-8", $iso2709), > }; > >- C4::Letters::EnqueueLetter({ >+ my $message_id = C4::Letters::EnqueueLetter({ > letter => $letter, > message_transport_type => 'email', > borrowernumber => $patron->borrowernumber, >@@ -124,6 +124,8 @@ if ($to_address) { > attachments => [$attachment], > }); > >+ C4::Letters::SendQueuedMessages({ message_id => $message_id }); >+ > $template->param( SENT => 1 ); > } > >-- >2.30.2
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 3150
:
114127
|
114545
|
114579
|
114582
|
117237
|
118313
|
120477
|
120478
|
121026
|
121027
|
121037
|
121038
|
123020
|
123021
|
123022
|
125225
|
125226
|
125227
|
125379
|
126544
|
126545
|
126546
|
126547
|
130150
|
130151
|
130152
|
130153
|
134304
|
134305
|
134306
|
134307
|
134308
|
134477
|
137690
|
137691
|
137692
|
137693
|
137694
|
137716
|
137717
|
137718
|
137719
|
137720
|
137878
|
140246
|
140247
|
140248
|
140249
|
140250
|
140251
|
140252
|
140253
|
140254
|
140255
|
140256
|
140257
|
140258
|
140259
|
145229
|
145230
|
145231
|
145232
|
145233
|
145234
|
145676
|
145677
|
145678
|
145679
|
145680
|
145681
|
146560
|
146561
|
146562
|
146563
|
146564
|
146565
|
146566
|
146858
|
146859
|
146860
|
146861
|
146862
|
146863
|
146864
|
146865
|
146866
|
146867
|
146987
|
147423
|
147868
|
147869
|
147870
|
147871
|
147872
|
147873
|
147874
|
147875
|
147876
|
147877
|
147878
|
147879
|
147880
|
148045
|
148170
|
148171
|
148172
|
148173
|
148174
|
148175
|
148176
|
148177
| 148178 |
148179
|
148180
|
148181
|
148182
|
148183
|
148184
|
148185