View | Details | Raw Unified | Return to bug 37598
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_37598_-_add_EmailRecipientField_syspref.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "37598",
5
    description => "Ability to use the BCC field for sending notices to multiple addresses, rather than the To field",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            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') }
12
        );
13
14
        say $out "Added system preference 'EmailRecipientField'";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 245-250 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
245
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
245
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
246
('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'),
246
('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'),
247
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
247
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
248
('EmailRecipientField', 'to', 'to|cc|bcc', 'If sending to a selection of email addresses, choose which recipient field should be used for the email', 'Choice'),
248
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
249
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
249
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
250
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
250
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
251
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-2 / +8 lines)
Lines 221-227 Patrons: Link Here
221
               email: primary email
221
               email: primary email
222
               emailpro: secondary email
222
               emailpro: secondary email
223
               B_email: alternate email
223
               B_email: alternate email
224
         - .
224
         - "using the"
225
         - pref: EmailRecipientField
226
           choices:
227
               to: "To"
228
               cc: "Copy (CC)"
229
               bcc: "Blind copy (BCC)"
230
         - "recipient field."
231
         - '<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>.'
225
     -
232
     -
226
         - pref: TalkingTechItivaPhoneNotification
233
         - pref: TalkingTechItivaPhoneNotification
227
           choices:
234
           choices:
228
- 

Return to bug 37598