Bugzilla – Attachment 168254 Details for
Bug 37216
Fix dbrev for EmailFieldSelection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37216: (QA follow-up) Add update to set existing options
Bug-37216-QA-follow-up-Add-update-to-set-existing-.patch (text/plain), 1.30 KB, created by
Martin Renvoize (ashimema)
on 2024-06-28 15:03:44 UTC
(
hide
)
Description:
Bug 37216: (QA follow-up) Add update to set existing options
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-06-28 15:03:44 UTC
Size:
1.30 KB
patch
obsolete
>From d0e681c45263596823c2783d22c120622fe94f99 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 28 Jun 2024 16:03:03 +0100 >Subject: [PATCH] Bug 37216: (QA follow-up) Add update to set existing options > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/atomicupdate/bug_37216.pl | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_37216.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_37216.pl b/installer/data/mysql/atomicupdate/bug_37216.pl >new file mode 100644 >index 00000000000..e773122adfc >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_37216.pl >@@ -0,0 +1,18 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "37216", >+ description => "Ensure EmailFieldSelection options are correct", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{ UPDATE systempreferences SET options = 'email|emailpro|B_email' WHERE variable = 'EmailFieldSelection' } >+ ); >+ >+ say_success( $out, "Updated system preference 'EmailFieldSelection'" ); >+ }, >+}; >-- >2.45.2
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 37216
:
168218
|
168230
|
168253
|
168254
|
168255
|
168256
|
168298