From df2fe22ddfaedb5cb7c3178359a428e312f95789 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 | 8 ++++--- 2 files changed, 26 insertions(+), 3 deletions(-) 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 00000000000..ce9258cf536 --- /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 585d7a5d8d8..d0997f13f35 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -737,9 +737,11 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SelfCheckInUserCSS','',NULL,'Add CSS to be included in the self check-in module in an embedded