Bugzilla – Attachment 180425 Details for
Bug 37598
Ability to use the BCC field for sending notices to multiple addresses, rather than the To field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37598: Add EmailRecipientField syspref
Bug-37598-Add-EmailRecipientField-syspref.patch (text/plain), 4.01 KB, created by
Aleisha Amohia
on 2025-04-02 21:02:57 UTC
(
hide
)
Description:
Bug 37598: Add EmailRecipientField syspref
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2025-04-02 21:02:57 UTC
Size:
4.01 KB
patch
obsolete
>From c83b751269e2f4a56a37e498eab69dcdf41416b1 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 12 Aug 2024 23:57:16 +0000 >Subject: [PATCH] Bug 37598: Add EmailRecipientField syspref > >--- > ...ug_37598_-_add_EmailRecipientField_syspref.pl | 16 ++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/patrons.pref | 9 ++++++++- > 3 files changed, 25 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_37598_-_add_EmailRecipientField_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_37598_-_add_EmailRecipientField_syspref.pl b/installer/data/mysql/atomicupdate/bug_37598_-_add_EmailRecipientField_syspref.pl >new file mode 100755 >index 00000000000..cf081c5fb7a >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_37598_-_add_EmailRecipientField_syspref.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "37598", >+ description => "Ability to use the BCC field for sending notices to multiple addresses, rather than the To field", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EmailRecipientField', 'to', 'to|cc|bcc', 'If sending to a selection of email addresses, choose which recipient field should be used in the email', 'Choice') } >+ ); >+ >+ say $out "Added system preference 'EmailRecipientField'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 2bf9d0b6486..e4f4e525cbd 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -245,6 +245,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'), > ('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'), > ('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'), >+('EmailRecipientField', 'to', 'to|cc|bcc', 'If sending to a selection of email addresses, choose which recipient field should be used for the email', 'Choice'), > ('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'), > ('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'), > ('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >index 671b4f4d416..2df6963fe6b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >@@ -221,7 +221,14 @@ Patrons: > email: primary email > emailpro: secondary email > B_email: alternate email >- - . >+ - "using the" >+ - pref: EmailRecipientField >+ choices: >+ to: "To" >+ cc: "Copy (CC)" >+ bcc: "Blind copy (BCC)" >+ - "recipient field." >+ - '<br><strong>NOTE:</strong> When <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailRecipientField">EmailRecipientField</a> is set to "CC" or "BCC", the <strong>"first valid"</strong> email address will be used in the "To" field, as set in <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailFieldPrecedence">EmailFieldPrecedence</a>.' > - > - pref: TalkingTechItivaPhoneNotification > choices: >-- >2.39.5
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 37598
:
170249
|
170250
|
170254
|
170255
|
170256
|
171112
|
171113
|
171114
| 180425 |
180426
|
180427