Bugzilla – Attachment 166255 Details for
Bug 31097
Patron restriction types should display in staff interface and OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31097: Update restriction type display text
Bug-31097-Update-restriction-type-display-text.patch (text/plain), 1.83 KB, created by
Martin Renvoize
on 2024-05-07 10:46:09 UTC
(
hide
)
Description:
Bug 31097: Update restriction type display text
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2024-05-07 10:46:09 UTC
Size:
1.83 KB
patch
obsolete
>From 920bb696d6d2dc1a7abfff19437bf40ea49c2891 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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
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 31097
:
165059
|
165060
|
165138
|
165139
|
165218
|
165219
|
165220
|
165221
|
166054
|
166055
| 166255 |
166296
|
166428