Bugzilla – Attachment 176061 Details for
Bug 24499
Add new syspref EnhancedMessaging for central activation/desactivation of notifications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24499: (QA follow-up) fix atomic file
Bug-24499-QA-follow-up-fix-atomic-file.patch (text/plain), 2.02 KB, created by
Thibaud Guillot (thibaud_g)
on 2025-01-02 15:27:55 UTC
(
hide
)
Description:
Bug 24499: (QA follow-up) fix atomic file
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2025-01-02 15:27:55 UTC
Size:
2.02 KB
patch
obsolete
>From c3d35e2099fa41ddb9bfe3b55f994af3ef65e0e3 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Thu, 2 Jan 2025 15:26:04 +0000 >Subject: [PATCH] Bug 24499: (QA follow-up) fix atomic file > >--- > ...bug_24499-add_EnhancedMessaging_syspref.pl | 23 ++++++++++++------- > 1 file changed, 15 insertions(+), 8 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl b/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl >index d7fe4567c7..a0821da63e 100755 >--- a/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl >+++ b/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl >@@ -1,11 +1,18 @@ > use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); > > return { >- bug_number => "BUG_24499", >- description => "Add new system preference EnhancedMessaging", >- up => sub { >- my ($args) = @_; >- my ($dbh, $out) = @$args{qw(dbh out)}; >- $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnhancedMessaging', '1', NULL, "Send/Don't send notifications through misc/cronjobs/advance_notices.pl", 'YesNo') }); >- }, >- }; >+ bug_number => "24499", >+ description => "Add new system preference EnhancedMessaging", >+ 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 ('EnhancedMessaging', '1', NULL, "Send/Don't send notifications through misc/cronjobs/advance_notices.pl", 'YesNo') } >+ ); >+ >+ say_success( $out, "Added new system preference 'EnhancedMessaging'" ); >+ }, >+}; >\ No newline at end of file >-- >2.25.1
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 24499
:
129834
|
145356
|
147411
|
147412
|
147413
|
176059
|
176060
| 176061