Bugzilla – Attachment 138880 Details for
Bug 31325
Fix koha-preferences get
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31325: Fix koha-preferences get
Bug-31325-Fix-koha-preferences-get.patch (text/plain), 1.03 KB, created by
Magnus Enger
on 2022-08-09 06:53:57 UTC
(
hide
)
Description:
Bug 31325: Fix koha-preferences get
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2022-08-09 06:53:57 UTC
Size:
1.03 KB
patch
obsolete
>From a5fb0a99c29b51474e70902fe1cc23c0c1414703 Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@libriotech.no> >Date: Tue, 9 Aug 2022 06:49:54 +0000 >Subject: [PATCH] Bug 31325: Fix koha-preferences get > >To reproduce: >$ perl koha/misc/admin/koha-preferences get MarcFlavour >This will output something like "HASH(0x55dd4d432840)". > >To test: >Apply this patch and run the command again: >$ perl koha/misc/admin/koha-preferences get MarcFlavour >This should output something like "MARC21". >--- > misc/admin/koha-preferences | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/misc/admin/koha-preferences b/misc/admin/koha-preferences >index 635c7a581c..5c07c2b8a7 100755 >--- a/misc/admin/koha-preferences >+++ b/misc/admin/koha-preferences >@@ -238,7 +238,9 @@ my %commands = ( > > print_usage() unless ( $preference ); > >- print GetPreference( $preference ) . "\n"; >+ my $pref = GetPreference( $preference ); >+ >+ say $pref->{'value'}; > }, > set => sub { > my ( $preference, $value ) = @_; >-- >2.30.2
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 31325
:
138880
|
138918
|
139050