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". Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit3f1fe4f178) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit92d541ddc4) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
8b3e48aeaa
commit
e86a36c150
|
|
@ -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 ) = @_;
|
||||
|
|
|
|||
Loading…
Reference in New Issue