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

(-)a/installer/data/mysql/atomicupdate/bug_21627.pl (+21 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "21627",
6
    description => "Add System preferences SendPrintNoticesEmails and SendPrintNoticesCombineEmails",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(q{
13
        INSERT IGNORE INTO systempreferences
14
        (`variable`, `value`, `options`, `explanation`, `type`)
15
        VALUES
16
            ('SendPrintNoticesEmails','','','What email addresses should send_print_notices.pl send to?','Free'),
17
            ('SendPrintNoticesCombineEmails','1',NULL,'If we have emails in the flag and the system preference should we combine them or just use the system preference?','YesNo')});
18
19
        say $out "Added new system preferences 'SendPrintNoticesEmails' and 'SendPrintNoticesCombineEmails";
20
    },
21
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +2 lines)
Lines 717-722 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
717
('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
717
('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
718
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
718
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
719
('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free'),
719
('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free'),
720
('SendPrintNoticesCombineEmails','1',NULL,'If we have emails in the flag and the system preference should we combine them or just use the system preference?','YesNo'),
721
('SendPrintNoticesEmails','','','What email addresses should send_print_notices.pl send to?','Free'),
720
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
722
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
721
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
723
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
722
('SerialsDefaultEmailAddress', '', NULL, 'Default email address used as reply-to for notices sent by the serials module.', 'Free'),
724
('SerialsDefaultEmailAddress', '', NULL, 'Default email address used as reply-to for notices sent by the serials module.', 'Free'),
723
- 

Return to bug 21627