From 9e996fc4667e843cce851c4410f96da0d7ccd3ce Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 7 May 2024 11:45:40 +0100 Subject: [PATCH] Bug 31097: Update restriction type display text Signed-off-by: Katrin Fischer --- installer/data/mysql/atomicupdate/bug_31097.pl | 18 ++++++++++++++++++ .../en/mandatory/patron_restriction_types.yml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 installer/data/mysql/atomicupdate/bug_31097.pl diff --git a/installer/data/mysql/atomicupdate/bug_31097.pl b/installer/data/mysql/atomicupdate/bug_31097.pl new file mode 100755 index 0000000000..7cb7083c18 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_31097.pl @@ -0,0 +1,18 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); + +return { + bug_number => "31097", + description => "Change default 'Manual' restriction test", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do(q{ UPDATE restriction_types SET display_text = "Manual restriction" WHERE display_text = "Manual"}); + + say_info( + $out, + "Updated patron restriction types display for MANUAL restrictions from 'Manual' to 'Manual restriction'" + ); + }, +}; diff --git a/installer/data/mysql/en/mandatory/patron_restriction_types.yml b/installer/data/mysql/en/mandatory/patron_restriction_types.yml index 5299692324..8486145898 100644 --- a/installer/data/mysql/en/mandatory/patron_restriction_types.yml +++ b/installer/data/mysql/en/mandatory/patron_restriction_types.yml @@ -26,7 +26,7 @@ tables: multiline: [] rows: - code: "MANUAL" - display_text: "Manual" + display_text: "Manual restriction" is_system: 0 is_default: 1 -- 2.39.5