From 7ee8a37fabe0e45149dc1e04068da6acae91470e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Jan 2018 12:23:42 -0300 Subject: [PATCH] Bug 19935: Replace GetPendingIssues - SIP Sounds like we do not need related fields or 'overdue' flag here. No idea how to confirm there is no regression here. Signed-off-by: Benjamin Rokseth --- C4/SIP/ILS/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm index 4570840..74f3cf9 100644 --- a/C4/SIP/ILS/Patron.pm +++ b/C4/SIP/ILS/Patron.pm @@ -125,7 +125,7 @@ sub new { # FIXME: populate fine_items recall_items $ilspatron{unavail_holds} = _get_outstanding_holds($kp->{borrowernumber}); - $ilspatron{items} = GetPendingIssues($kp->{borrowernumber}); + $ilspatron{items} = $patron->pending_checkouts->unblessed; $self = \%ilspatron; $debug and warn Dumper($self); syslog("LOG_DEBUG", "new ILS::Patron(%s): found patron '%s'", $patron_id,$self->{id}); -- 2.1.4