[Koha-bugs] [Bug 32309] New: Store saved_reports values as hash
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Nov 21 17:54:39 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32309
Bug ID: 32309
Summary: Store saved_reports values as hash
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Reports
Assignee: koha-bugs at lists.koha-community.org
Reporter: andrewfh at dubcolib.org
QA Contact: testopia at bugs.koha-community.org
CC: nick at bywatersolutions.com
When using the --store-results option in runreport.pl, the resulting stored
data would be more easily usable if stored as a hash.
So, say we have a patron named Andrew Fuerste-Henry and a report "select
surname, firstname from borrowers." Currently, that will show up in
saved_reports as:
[["surname","firstname"],["Fuerste-Henry","Andrew"]]
That makes it hard to do something like find all the surnames connected to a
given firstname.
The data would be easier to work with if we instead stored it as a hash, like:
["surname" : "Fuerste-Henry" , "firstname" : "Andrew"]
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list