From 50daad6573802004f1e278fb64a4cc5855cde396 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 12 Oct 2018 12:47:04 -0300 Subject: [PATCH] Bug 21486: Fix 'AU' for SIP Signed-off-by: Colin Campbell --- C4/SIP/ILS/Patron.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm index 9b8cb53150..01bac98ae8 100644 --- a/C4/SIP/ILS/Patron.pm +++ b/C4/SIP/ILS/Patron.pm @@ -130,7 +130,13 @@ sub new { # FIXME: populate fine_items recall_items $ilspatron{unavail_holds} = _get_outstanding_holds($kp->{borrowernumber}); - $ilspatron{items} = $patron->pending_checkouts->unblessed; + my $pending_checkouts = $patron->pending_checkouts; + my @items_infos; + while ( my $c = $pending_checkouts->next ) { + push @items_infos, $c->unblessed_all_relateds; + } + $ilspatron{items} = \@items_infos; + $self = \%ilspatron; $debug and warn Dumper($self); syslog("LOG_DEBUG", "new ILS::Patron(%s): found patron '%s'", $patron_id,$self->{id}); -- 2.11.0