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 241-246 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
241
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
241
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
242
('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'),
242
('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'),
243
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
243
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
244
('EmailRecipientField', 'to', 'to|cc|bcc', 'If sending to a selection of email addresses, choose which recipient field should be used for the email', 'Choice'),
244
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
245
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
245
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
246
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
246
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
247
('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 (-1 / +8 lines)
Lines 219-224 Patrons: Link Here
219
               email: primary email
219
               email: primary email
220
               emailpro: secondary email
220
               emailpro: secondary email
221
               B_email: alternate email
221
               B_email: alternate email
222
         - "using the"
223
         - pref: EmailRecipientField
224
           choices:
225
               to: "To"
226
               cc: "Copy (CC)"
227
               bcc: "Blind copy (BCC)"
228
         - "recipient field."
229
         - '<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>.'
222
     -
230
     -
223
         - pref: TalkingTechItivaPhoneNotification
231
         - pref: TalkingTechItivaPhoneNotification
224
           choices:
232
           choices:
225
- 

Return to bug 37598