Bugzilla – Attachment 176340 Details for
Bug 21627
System preference for recipient emails of gather_print_notices.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21627: Add SendPrintNoticesCombineEmails and SendPrintNoticesEmails system preferences.
Bug-21627-Add-SendPrintNoticesCombineEmails-and-Se.patch (text/plain), 2.92 KB, created by
Imani
on 2025-01-10 14:30:28 UTC
(
hide
)
Description:
Bug 21627: Add SendPrintNoticesCombineEmails and SendPrintNoticesEmails system preferences.
Filename:
MIME Type:
Creator:
Imani
Created:
2025-01-10 14:30:28 UTC
Size:
2.92 KB
patch
obsolete
>From 26e3bd79faa6a890083e467ec52f550a8a945d03 Mon Sep 17 00:00:00 2001 >From: Imani Thomas <imani.thomas@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21627
:
176339
| 176340