From 26e3bd79faa6a890083e467ec52f550a8a945d03 Mon Sep 17 00:00:00 2001 From: Imani Thomas Date: Fri, 10 Jan 2025 13:56:05 +0000 Subject: [PATCH] Bug 21627: Add SendPrintNoticesCombineEmails and SendPrintNoticesEmails system preferences. --- .../data/mysql/atomicupdate/bug_21627.pl | 21 +++++++++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 2 ++ 2 files changed, 23 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_21627.pl diff --git a/installer/data/mysql/atomicupdate/bug_21627.pl b/installer/data/mysql/atomicupdate/bug_21627.pl new file mode 100755 index 0000000000..ce9258cf53 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_21627.pl @@ -0,0 +1,21 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "21627", + description => "Add System preferences SendPrintNoticesEmails and SendPrintNoticesCombineEmails", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do(q{ + INSERT IGNORE INTO systempreferences + (`variable`, `value`, `options`, `explanation`, `type`) + VALUES + ('SendPrintNoticesEmails','','','What email addresses should send_print_notices.pl send to?','Free'), + ('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')}); + + say $out "Added new system preferences 'SendPrintNoticesEmails' and 'SendPrintNoticesCombineEmails"; + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index ede2d4d275..8b1919007b 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -717,6 +717,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'), ('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'), ('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free'), +('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'), +('SendPrintNoticesEmails','','','What email addresses should send_print_notices.pl send to?','Free'), ('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'), ('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'), ('SerialsDefaultEmailAddress', '', NULL, 'Default email address used as reply-to for notices sent by the serials module.', 'Free'), -- 2.39.5