From 920bb696d6d2dc1a7abfff19437bf40ea49c2891 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 --- 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 00000000000..7cb7083c18e --- /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 52996923246..84861458988 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.45.0