From 846eefccca7c0d057f53de2bbcbba0d9fd1b0665 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 5 Jul 2026 12:27:46 +0000 Subject: [PATCH] Bug 41084: Re-format database update for new way of addind system preferences ... also adds say_success. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Lucas Gass --- installer/data/mysql/atomicupdate/bug_41084.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_41084.pl b/installer/data/mysql/atomicupdate/bug_41084.pl index c41673918a..93e476a704 100755 --- a/installer/data/mysql/atomicupdate/bug_41084.pl +++ b/installer/data/mysql/atomicupdate/bug_41084.pl @@ -1,4 +1,5 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); return { bug_number => "41084", @@ -9,11 +10,11 @@ return { $dbh->do( q{ - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('EnableZotero','1','','Enable Zotero export functionality','YesNo') + INSERT IGNORE INTO systempreferences (variable,value) VALUES + ('EnableZotero','1') } ); - say $out "Added new system preference 'EnableZotero'"; + say_success( $out, "Added new system preference 'EnableZotero'" ); }, };