[Koha-bugs] [Bug 19926] New: Add the Koha::Object->unblessed_all_relateds method
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 8 17:58:15 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19926
Bug ID: 19926
Summary: Add the Koha::Object->unblessed_all_relateds method
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: jonathan.druart at bugs.koha-community.org
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
In order to refactor our legacy code step-by-step, we will need to provide code
with the exact same behaviors and then improve it.
The same idea appears for the TT syntax for notices: we will want to deprecate
the existing syntax in order to support only one syntax. Currently we fetch all
the values from the related tables, without knowing which are actually used.
I am suggestion to introduce a Koha::Object->unblessed_all_relateds method
which will return a hash containing all the fields from the related tables
(with the problems we know: collision in column names).
It is the existing behavior of GetOverduesForPatron and GetPendingIssues for
instance, they are used to send notices and so we have to provide all the data
needed.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list