Bugzilla – Attachment 146942 Details for
Bug 32316
Send invitations to share a list immediately
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32316: Send list share invites and accepts immediately
Bug-32316-Send-list-share-invites-and-accepts-imme.patch (text/plain), 1.54 KB, created by
Katrin Fischer
on 2023-02-20 07:11:22 UTC
(
hide
)
Description:
Bug 32316: Send list share invites and accepts immediately
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-02-20 07:11:22 UTC
Size:
1.54 KB
patch
obsolete
>From 67ce688ff91ec2b4ad2dc058ba5ede19185e2638 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Mon, 20 Feb 2023 07:10:17 +0000 >Subject: [PATCH] Bug 32316: Send list share invites and accepts immediately > >For emails triggered manually it's save and helpful >to send them immediately. This patch takes care of >SHARE_INVITE and SHARE_ACCEPT. > >To test: >* Enable OpacAllowSharingPrivateLists >* Configure SMTP servers >* Set KohaAdminEmailAddress and an email address in your user >* Create a private list in the OPAC >* Share the list with your email >* Verify that you receive the email immediately > (in the message_queue the status will be sent) >* Create a second user to log into the OPAC with >* Log out of the OPAC >* Click on the link in the invite email or copy/paste it > to the browser >* Log in as your second user so the list is shared >--- > opac/opac-shareshelf.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-shareshelf.pl b/opac/opac-shareshelf.pl >index 29edd82293..ca3f96063d 100755 >--- a/opac/opac-shareshelf.pl >+++ b/opac/opac-shareshelf.pl >@@ -177,7 +177,7 @@ sub notify_owner { > ); > > #send letter to queue >- C4::Letters::EnqueueLetter( >+ my $message_id = C4::Letters::EnqueueLetter( > { > letter => $letter, > message_transport_type => 'email', >@@ -185,6 +185,7 @@ sub notify_owner { > to_address => $toaddr, > } > ); >+ C4::Letters::SendQueuedMessages({ message_id => $message_id }); > } > > sub process_addrlist { >-- >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 32316
:
146520
|
146942
|
146971
|
148104