https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31325
Bug ID: 31325
Summary: Fix koha-preferences get
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Command-line Utilities
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
To reproduce:
$ perl koha/misc/admin/koha-preferences get
HASH(0x55dd4d432840)
The problem is that _fetch_preference() fetches variable, value and type:
109 sub _fetch_preference {
110 my ( $preference ) = @_;
111
112 my $dbh = C4::Context->dbh;
113
114 my $row = $dbh->selectrow_hashref( "
115 SELECT
116 variable, value, type
117 FROM systempreferences
118 WHERE variable = ?
119 LIMIT 1
120 ", {}, $preference );
121
122 exit 2 unless ( $row );
123
124 return $row;
125 }
And then all of that data is just printed, instead of only the value being
printed.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/