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 253-258 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
253
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
253
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
254
('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'),
254
('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'),
255
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
255
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
256
('EmailRecipientField', 'to', 'to|cc|bcc', 'If sending to a selection of email addresses, choose which recipient field should be used for the email', 'Choice'),
256
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
257
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
257
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
258
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
258
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
259
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-2 / +8 lines)
Lines 229-235 Patrons: Link Here
229
               email: primary email
229
               email: primary email
230
               emailpro: secondary email
230
               emailpro: secondary email
231
               B_email: alternate email
231
               B_email: alternate email
232
         - .
232
         - "using the"
233
         - pref: EmailRecipientField
234
           choices:
235
               to: "To"
236
               cc: "Copy (CC)"
237
               bcc: "Blind copy (BCC)"
238
         - "recipient field."
239
         - '<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>.'
233
     -
240
     -
234
         - pref: TalkingTechItivaPhoneNotification
241
         - pref: TalkingTechItivaPhoneNotification
235
           choices:
242
           choices:
236
- 

Return to bug 37598