[Koha-bugs] [Bug 17553] Move GetOverduesForPatron to Koha::Patron

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 8 13:32:49 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17553

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #57203|0                           |1
        is obsolete|                            |

--- Comment #6 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 57312
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57312&action=edit
Bug 17553: Koha::Patron->get_overdues

This patch is for discussion:
As you can see it introduces a weird
Koha::Object->unblessed_all_relateds subroutine.
The idea is to fix a lack we will have soon: A lot of subroutines
retrieves data from several tables and put them into a hashref. It's
convenient for the use we have here: Send everything to a subroutine to
generate a letter.
The problem is that I did not find a good and elegant way to do that
using DBIX::Class.
This new method loops through all the "related resultsets" which are the
prefetched tables.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list