[Koha-bugs] [Bug 19935] Move C4::Members::GetPendingIssues to the Koha namespace

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 13 11:02:29 CET 2018


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

Benjamin Rokseth <benjamin.rokseth at deichman.no> changed:

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

--- Comment #19 from Benjamin Rokseth <benjamin.rokseth at deichman.no> ---
Created attachment 72752
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72752&action=edit
Bug 19935: Add Koha::Patron->pending_checkouts

To move this subroutine out of the C4 namespace we face the same
problematic as bug 17553 (with GetOverduesForPatron).
We need to provide an equivalent method and so return all the related
value for a given checkout.
We can acchieve the easily using Koha::Object->unblessed_all_relateds,
but we need to keep in mind that it is a temporary move.
Indeed we will want to use our API to only access/retrive values we really
need.
The whole trick could be removed when the current syntax for notices
will be deprecated and removed.

Note: this method returns the same number of elements than ->checkouts
They indeed returns the same things, but it sounds better to me to have a
different method to highlight (from the callers) where does it come
from (C4::Members::GetPendingIssues).

Signed-off-by: Benjamin Rokseth <benjamin.rokseth at deichman.no>

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


More information about the Koha-bugs mailing list