From 07b5e8ab8270a623105997d0141f5ff1b576026c Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 26 Jan 2026 19:58:01 +0000 Subject: [PATCH] Bug 25193: (follow-up) Fix output formatting of database update Signed-off-by: Katrin Fischer --- ...-add_AllowRenewalIfOtherItemsAvailableLocation_syspref.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_25193-add_AllowRenewalIfOtherItemsAvailableLocation_syspref.pl b/installer/data/mysql/atomicupdate/bug_25193-add_AllowRenewalIfOtherItemsAvailableLocation_syspref.pl index 23888958a8e..63bb1f5c3e3 100755 --- a/installer/data/mysql/atomicupdate/bug_25193-add_AllowRenewalIfOtherItemsAvailableLocation_syspref.pl +++ b/installer/data/mysql/atomicupdate/bug_25193-add_AllowRenewalIfOtherItemsAvailableLocation_syspref.pl @@ -1,8 +1,9 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); return { bug_number => "25193", - description => "Add syspref to control location for use of AllowRenewalIfOtherItemsAvailable", + description => "Add system preference to control location for use of AllowRenewalIfOtherItemsAvailable", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; @@ -11,6 +12,6 @@ return { q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('AllowRenewalIfOtherItemsAvailableLocation', 'any', 'any|holdbranch', 'Specify where items must be available for fulfilling holds to allow a renewal.', 'Choice') } ); - say $out "Added system preference 'AllowRenewalIfOtherItemsAvailableLocation'"; + say_success( $out, "Added new system preference 'AllowRenewalIfOtherItemsAvailableLocation'" ); }, }; -- 2.39.5